Ignore:
Timestamp:
Feb 18, 2025, 12:54:23 PM (6 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
8705a11
Parents:
3e5fea2
Message:

Clean-up the warnings of the concurrency tests. A lot of little test level fixes, the most interesting repeated one is some formally redundent fallthough statements. pthread_attr_test had to be rewritten because of library restrictions. Changed some types so they would always be pointer sized. There was a library change, there was a function that could not be implemented; I trust that it is included for a reason so I just put it in a comment. There is a change to the compiler, wait-until now uses goto. The labelled breaks were code generated as unlabelled breaks and although it worked out slipped through some checks. Finally, there is one warning that I cannot solve at this time so tests that produce it have been put in their own lax group.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tests/concurrency/waituntil/channel_close.cfa

    r3e5fea2 rd923fca  
    99
    1010thread Producer {};
    11 void main( Producer & this ) {
     11void main( Producer & ) {
    1212    try {
    1313        for( size_t i; 0~@ ) {
     
    1515            and waituntil( B << i ) { inserts++; }
    1616        }
    17     } catch ( channel_closed * e ) {} 
     17    } catch ( channel_closed * e ) {}
    1818}
    1919
    2020bool useAnd = false;
    2121thread Consumer {}; // ensures that the changing when states of Server1 don't result in a deadlock
    22 void main( Consumer & this ) {
     22void main( Consumer & ) {
    2323    ssize_t in, in2, A_removes = 0, B_removes = 0;
    2424
     
    3434        }
    3535    } catchResume ( channel_closed * e ) {                              // continue to remove until would block
    36         } catch ( channel_closed * e ) {} 
     36        } catch ( channel_closed * e ) {}
    3737
    3838    try {
     
    4040            waituntil( (in << A) ) { __atomic_thread_fence( __ATOMIC_SEQ_CST ); assert( A_removes == in ); A_removes++; removes++; }
    4141    } catchResume ( channel_closed * e ) {                              // continue to remove until would block
    42         } catch ( channel_closed * e ) {} 
     42        } catch ( channel_closed * e ) {}
    4343
    4444    try {
     
    4646            waituntil( (in << B) ) { __atomic_thread_fence( __ATOMIC_SEQ_CST ); assert( B_removes == in ); B_removes++; removes++; }
    4747    } catchResume ( channel_closed * e ) {                              // continue to remove until would block
    48         } catch ( channel_closed * e ) {} 
     48        } catch ( channel_closed * e ) {}
    4949}
    5050
Note: See TracChangeset for help on using the changeset viewer.