- Timestamp:
- Nov 13, 2023, 3:43:43 AM (23 months ago)
- Branches:
- master
- Children:
- 25f2798
- Parents:
- 0030b508 (diff), 2174191 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- tests
- Files:
-
- 3 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/collections/.expect/string-istream-manip.txt
r0030b508 rfc12f05 69 69 13 wwwwwwww 70 70 14 cccc 71 15 71 15 q 72 72 1 yyyyyyyyyyyyyyyyyyyy 73 73 2 abcxxx … … 84 84 13 wwwwwwww 85 85 14 cccc 86 15 86 15 q -
tests/collections/string-istream-manip.cfa
r0030b508 rfc12f05 38 38 void echoTillX(const char * casename) { 39 39 string s; 40 do { 40 // loop assumes behaviour not tested until main-case #15: 41 // on reading nothing, the prior string value is left alone 42 do { 43 s = ""; 41 44 forceStringHeapFreeSpaceTo(9); 42 45 sin | s; … … 54 57 string s; 55 58 do { 59 s = ""; 56 60 sin | plainjane( s ); 57 61 sout | casename | s; … … 68 72 string_res s; 69 73 do { 74 s = ""; 70 75 sin | plainjane( s ); 71 76 sout | casename | s; … … 82 87 string s; 83 88 do { 89 s = ""; 84 90 sin | skip("-\n"); 85 91 sin | incl( ".:|# x", s ); … … 97 103 string s; 98 104 do { 105 s = ""; 99 106 sin | skip("-\n"); 100 107 sin | excl( "-\n", s ); … … 113 120 string s; 114 121 do { 122 s = ""; 115 123 sin | getline( s ); 116 124 sout | casename | s; … … 127 135 string s; 128 136 do { 137 s = ""; 129 138 sin | getline( s, '@' ); 130 139 sout | casename | s; -
tests/concurrency/actors/.expect/dynamic.txt
r0030b508 rfc12f05 1 1 starting 2 2 started 3 stopping4 3 Done 5 4 stopped -
tests/concurrency/actors/.expect/static.txt
r0030b508 rfc12f05 1 1 starting 2 2 started 3 stopping4 3 Done 5 4 stopped -
tests/concurrency/actors/dynamic.cfa
r0030b508 rfc12f05 58 58 *d_actor | *d_msg; 59 59 60 sout | "stopping";61 62 60 stop_actor_system(); 63 61 -
tests/concurrency/actors/static.cfa
r0030b508 rfc12f05 55 55 actor | msg; 56 56 57 sout | "stopping";58 59 57 stop_actor_system(); 60 58 -
tests/concurrency/cofor.cfa
r0030b508 rfc12f05 1 1 #include <cofor.hfa> 2 3 2 4 3 void add_num( long * total, long val ) { __atomic_fetch_add( total, (long)val, __ATOMIC_SEQ_CST ); } … … 8 7 processor p[4]; 9 8 long total = 0; 10 COFOR( i, 0, 10, __atomic_fetch_add( &total, i, __ATOMIC_SEQ_CST ); ); 9 cofor( i; 10 ) { 10 __atomic_fetch_add( &total, i, __ATOMIC_SEQ_CST ); 11 } 11 12 { 12 13 corun; // does nothing -
tests/concurrency/waitfor/parse.cfa
r0030b508 rfc12f05 10 10 // Created On : Wed Aug 30 17:53:29 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 10 22:52:18202313 // Update Count : 6 412 // Last Modified On : Wed Nov 1 07:28:19 2023 13 // Update Count : 65 14 14 // 15 15 … … 258 258 // Local Variables: // 259 259 // tab-width: 4 // 260 // compile-command: "cfa waitfor.cfa" //260 // compile-command: "cfa parse.cfa" // 261 261 // End: // -
tests/concurrency/waituntil/channel_close.cfa
r0030b508 rfc12f05 26 26 for( ;; ) { 27 27 if ( useAnd ) { 28 waituntil( (in << A) ) { assert( A_removes == in ); A_removes++; removes++; }29 and waituntil( (in2 << B) ) { assert( B_removes == in2 ); B_removes++; removes++; }28 waituntil( (in << A) ) { __atomic_thread_fence( __ATOMIC_SEQ_CST ); assert( A_removes == in ); A_removes++; removes++; } 29 and waituntil( (in2 << B) ) { __atomic_thread_fence( __ATOMIC_SEQ_CST ); assert( B_removes == in2 ); B_removes++; removes++; } 30 30 continue; 31 31 } 32 waituntil( (in << A) ) { assert( A_removes == in ); A_removes++; removes++; }33 or waituntil( (in << B) ) { assert( B_removes == in ); B_removes++; removes++; }32 waituntil( (in << A) ) { __atomic_thread_fence( __ATOMIC_SEQ_CST ); assert( A_removes == in ); A_removes++; removes++; } 33 or waituntil( (in << B) ) { __atomic_thread_fence( __ATOMIC_SEQ_CST ); ( B_removes == in ); B_removes++; removes++; } 34 34 } 35 35 } catchResume ( channel_closed * e ) {} // continue to remove until would block … … 37 37 try { 38 38 for( ;; ) 39 waituntil( (in << A) ) { assert( A_removes == in ); A_removes++; removes++; }39 waituntil( (in << A) ) { __atomic_thread_fence( __ATOMIC_SEQ_CST ); assert( A_removes == in ); A_removes++; removes++; } 40 40 } catchResume ( channel_closed * e ) {} // continue to remove until would block 41 41 catch ( channel_closed * e ) {} 42 42 try { 43 43 for( ;; ) 44 waituntil( (in << B) ) { assert( B_removes == in ); B_removes++; removes++; }44 waituntil( (in << B) ) { __atomic_thread_fence( __ATOMIC_SEQ_CST ); assert( B_removes == in ); B_removes++; removes++; } 45 45 } catchResume ( channel_closed * e ) {} // continue to remove until would block 46 46 catch ( channel_closed * e ) {} -
tests/genericUnion.cfa
r0030b508 rfc12f05 10 10 // Created On : Tue Dec 25 14:42:46 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Dec 25 14:46:33 201813 // Update Count : 212 // Last Modified On : Fri Oct 20 09:13:26 2023 13 // Update Count : 15 14 14 // 15 15 16 #include <fstream.hfa> 16 17 #include <limits.hfa> 17 18 18 forall( T)19 forall( T ) 19 20 union ByteView { 20 21 T val; … … 23 24 24 25 forall(T) 25 void print( ByteView(T) x) {26 for ( int i = 0; i < sizeof(int); i++) {// want to change to sizeof(T)27 printf("%02x", x.bytes[i] & 0xff);26 void print( ByteView(T) x ) { 27 for ( i; sizeof(int) ) { // want to change to sizeof(T) 28 sout | nobase( pad0( wd( 2, hex( x.bytes[i] & 0xff ) ) ) ) | nosep; 28 29 } 29 30 } 30 31 31 32 forall(T) 32 void f( ByteView(T) x, T val) {33 print( x);34 printf(" ");33 void f( ByteView(T) x, T val ) { 34 print( x ); 35 sout | " "; 35 36 x.val = val; 36 print( x);37 printf("\n");37 print( x ); 38 sout | nl; 38 39 } 39 40 40 41 int main() { 42 sout | nlOff; 41 43 ByteView(unsigned) u = { 0 }; 42 44 ByteView(int) i = { 0 }; 43 f( u, MAX);44 f( i, -1);45 f( u, MAX ); 46 f( i, -1 ); 45 47 } 46 48 -
tests/io/.expect/manipulatorsInput.arm64.txt
r0030b508 rfc12f05 24 24 3 abcxxx 25 25 4 aaaaaaaa 26 5 aaaaaaaa26 5 27 27 6 aabbccbb 28 28 7 dddwww 29 8 dddwww30 9 dddwww29 8 30 9 31 31 10 aaaaaaaa 32 32 11 wwwwwwww 33 12 wwwwwwww34 13 wwwwwwww33 12 34 13 35 35 14 cccc 36 36 15 -
tests/io/.expect/manipulatorsInput.x64.txt
r0030b508 rfc12f05 24 24 3 abcxxx 25 25 4 aaaaaaaa 26 5 aaaaaaaa26 5 27 27 6 aabbccbb 28 28 7 dddwww 29 8 dddwww30 9 dddwww29 8 30 9 31 31 10 aaaaaaaa 32 32 11 wwwwwwww 33 12 wwwwwwww34 13 wwwwwwww33 12 34 13 35 35 14 cccc 36 36 15 -
tests/io/.expect/manipulatorsInput.x86.txt
r0030b508 rfc12f05 24 24 3 abcxxx 25 25 4 aaaaaaaa 26 5 aaaaaaaa26 5 27 27 6 aabbccbb 28 28 7 dddwww 29 8 dddwww30 9 dddwww29 8 30 9 31 31 10 aaaaaaaa 32 32 11 wwwwwwww 33 12 wwwwwwww34 13 wwwwwwww33 12 34 13 35 35 14 cccc 36 36 15 -
tests/io/.expect/manipulatorsOutput4.txt
r0030b508 rfc12f05 225 225 -1.55051464826854e+28 -15.5051e27 -15.5051e27 -15.505e27 -15.505e27 -15.50515e27 -15.50515e27 -0015.505e27 -0015.505e27 -15.50515e27 -15.50515e27 -15.505e27 -15.505e27 -15.50515e27 -15.50515e27 -15.505e27 -15.505e27 -15.50515e27 -15.50515e27 226 226 -6.51216152272788e+29 -651.216e27 -651.216e27 -651.22e27 -651.22e27 -651.21615e27 -651.21615e27 -00651.22e27 -00651.22e27 -651.21615e27 -651.21615e27 -651.22e27 -651.22e27 -651.21615e27 -651.21615e27 -651.22e27 -651.22e27 -651.21615e27 -651.21615e27 227 0 1 1 1.0 1 228 1 2 2 2.0 2 229 2 4 4 4.0 4 230 3 8 8 8.0 8 231 4 16 16 16.0 16 232 5 32 32 32.0 32 233 6 64 64 64.0 64 234 7 128 128 128.0 128 235 8 256 256 256.0 256 236 9 512 512 512.0 512 237 10 1024 1.024K 1.0K 1K 238 11 2048 2.048K 2.0K 2K 239 12 4096 4.096K 4.1K 4K 240 13 8192 8.192K 8.2K 8K 241 14 16384 16.384K 16.4K 16K 242 15 32768 32.768K 32.8K 33K 243 16 65536 65.536K 65.5K 66K 244 17 131072 131.072K 131.1K 131K 245 18 262144 262.144K 262.1K 262K 246 19 524288 524.288K 524.3K 524K 247 20 1048576 1.04858M 1.0M 1M 248 21 2097152 2.09715M 2.1M 2M 249 22 4194304 4.1943M 4.2M 4M 250 23 8388608 8.38861M 8.4M 8M 251 24 16777216 16.7772M 16.8M 17M 252 25 33554432 33.5544M 33.6M 34M 253 26 67108864 67.1089M 67.1M 67M 254 27 134217728 134.218M 134.2M 134M 255 28 268435456 268.435M 268.4M 268M 256 29 536870912 536.871M 536.9M 537M 257 30 1073741824 1.07374G 1.1G 1G 258 31 2147483648 2.14748G 2.1G 2G -
tests/io/manipulatorsOutput4.cfa
r0030b508 rfc12f05 7 7 // Created On : Tue Apr 13 17:55:02 2021 8 8 // Last Modified By : Peter A. Buhr 9 // Last Modified On : Tue Apr 13 18:00:33 202110 // Update Count : 49 // Last Modified On : Tue Oct 17 08:37:42 2023 10 // Update Count : 5 11 11 // 12 12 … … 42 42 | left(ws(12,5, eng(w) )) | left(sign(ws(12,5, eng(w) ))) | left(wd(12,5, eng(w) )) | left(sign(wd(12,5, eng(w) ))) | left(pad0(ws(12,5, eng(w) ))) | left(pad0(sign(ws(12,5, eng(w) )))) | left(pad0(wd(12,5, eng(w) ))) | left(pad0(sign(wd(12,5, eng(w) )))); 43 43 } // for 44 45 for ( exp; sizeof(int) * 8 ) { 46 size_t pow2 = 1z << exp; 47 sout | exp | pow2 | unit(eng(pow2)) | wd(0,1, unit(eng( pow2 ))) | wd(0,0, unit(eng(pow2))); 48 } // for 44 49 } // main 45 50
Note:
See TracChangeset
for help on using the changeset viewer.