Index: tests/concurrent/waituntil/.expect/1-chan-or-no-else.txt
===================================================================
--- tests/concurrent/waituntil/.expect/1-chan-or-no-else.txt	(revision b5513f19b8f14b09da1dd3d47e5017835b588fb2)
+++ tests/concurrent/waituntil/.expect/1-chan-or-no-else.txt	(revision b5513f19b8f14b09da1dd3d47e5017835b588fb2)
@@ -0,0 +1,5 @@
+start
+waiting for empty channels
+sending sentinels
+joining servers
+done
Index: tests/concurrent/waituntil/.expect/2-chan-or-no-else.txt
===================================================================
--- tests/concurrent/waituntil/.expect/2-chan-or-no-else.txt	(revision b5513f19b8f14b09da1dd3d47e5017835b588fb2)
+++ tests/concurrent/waituntil/.expect/2-chan-or-no-else.txt	(revision b5513f19b8f14b09da1dd3d47e5017835b588fb2)
@@ -0,0 +1,5 @@
+start
+waiting for empty channels
+sending sentinels
+joining servers
+done
Index: tests/concurrent/waituntil/1-chan-or-no-else.cfa
===================================================================
--- tests/concurrent/waituntil/1-chan-or-no-else.cfa	(revision b5513f19b8f14b09da1dd3d47e5017835b588fb2)
+++ tests/concurrent/waituntil/1-chan-or-no-else.cfa	(revision b5513f19b8f14b09da1dd3d47e5017835b588fb2)
@@ -0,0 +1,47 @@
+#include <select.hfa>
+#include <thread.hfa>
+#include <channel.hfa>
+
+channel(long long int) C;
+
+volatile bool done = false;
+long long int globalTotal = 0;
+
+thread Server1 {};
+void main( Server1 & this ) {
+    long long int c, i = 0, myTotal = 0;
+    for( ;;i++ ) {
+        waituntil( c << C ) { if ( c == -1 ) break; myTotal += c; }
+    }
+    __atomic_fetch_add( &globalTotal, myTotal, __ATOMIC_SEQ_CST );
+}
+
+size_t numtimes = 100000;
+size_t numServers = 1;
+int main( int argc, char * argv[] ) {
+    if ( argc == 2 )
+        numtimes = atoi( argv[1] );
+
+    processor p[numServers];
+    C{5};
+
+    long long int total = 0;
+    printf("start\n");
+    {
+        Server1 s[numServers];
+        for( long long int j = 0; j < numtimes; j++ ) {
+            waituntil( j >> C ) { total += j; }
+        }
+        printf("waiting for empty channels\n");
+        size_t C_count = get_count( C );
+        while( C_count > 0 ) { 
+            C_count = get_count( C );
+        }
+        printf("sending sentinels\n");
+        for ( i; numServers ) insert( C, -1 );
+        printf("joining servers\n");
+    }
+    if ( total != globalTotal ) 
+        printf("CHECKSUM MISMATCH!! Main thread got %lld, server sum is %lld\n", total, globalTotal);
+    printf("done\n");
+}
Index: tests/concurrent/waituntil/2-chan-or-no-else.cfa
===================================================================
--- tests/concurrent/waituntil/2-chan-or-no-else.cfa	(revision b5513f19b8f14b09da1dd3d47e5017835b588fb2)
+++ tests/concurrent/waituntil/2-chan-or-no-else.cfa	(revision b5513f19b8f14b09da1dd3d47e5017835b588fb2)
@@ -0,0 +1,52 @@
+#include <select.hfa>
+#include <thread.hfa>
+#include <channel.hfa>
+
+channel(long long int) B, C;
+
+volatile bool done = false;
+long long int globalTotal = 0;
+
+thread Server1 {};
+void main( Server1 & this ) {
+    long long int b, c, i = 0, myTotal = 0;
+    for( ;;i++ ) {
+        waituntil( b << B ) { myTotal += b; }
+        or waituntil( c << C ) { if ( c == -1 ) break; myTotal += c; }
+    }
+    __atomic_fetch_add( &globalTotal, myTotal, __ATOMIC_SEQ_CST );
+}
+
+size_t numtimes = 100000;
+size_t numServers = 1;
+int main( int argc, char * argv[] ) {
+    if ( argc == 2 )
+        numtimes = atoi( argv[1] );
+
+    processor p[numServers];
+    B{5};
+    C{5};
+
+    long long int total = 0;
+    printf("start\n");
+    {
+        Server1 s[numServers];
+        for( long long int j = 0; j < numtimes; j++ ) {
+            waituntil( j >> B ) { total += j; }
+            or waituntil( j >> C ) { total += j; }
+        }
+        printf("waiting for empty channels\n");
+        size_t B_count = get_count( B );
+        size_t C_count = get_count( C );
+        while( B_count > 0 || C_count > 0 ) { 
+            B_count = get_count( B );
+            C_count = get_count( C );
+        }
+        printf("sending sentinels\n");
+        for ( i; numServers ) insert( C, -1 );
+        printf("joining servers\n");
+    }
+    if ( total != globalTotal ) 
+        printf("CHECKSUM MISMATCH!! Main thread got %lld, server sum is %lld\n", total, globalTotal);
+    printf("done\n");
+}
