Ignore:
Timestamp:
Feb 18, 2025, 12:54:23 PM (8 months 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.

Location:
tests/concurrency/channels
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrency/channels/churn.cfa

    r3e5fea2 rd923fca  
    3030}
    3131
    32 void main(Consumer & this) {
     32void main(Consumer &) {
    3333    size_t i = 0;
    3434    size_t runs = 0;
     
    5353            }
    5454        } catchResume ( channel_closed * e ) {} // continue to remove until would block
    55         catch ( channel_closed * e ) {} 
     55        catch ( channel_closed * e ) {}
    5656    }
    5757
     
    6565thread Producer {};
    6666
    67 void main(Producer & this) {
     67void main(Producer &) {
    6868    size_t i = 0;
    6969    size_t runs = 0;
     
    7777            runs++;
    7878        }
    79     } catch ( channel_closed * e ) {} 
     79    } catch ( channel_closed * e ) {}
    8080    lock(o);
    8181    total_operations += runs;
     
    9393                        if ( ChannelSize < 1 ) fallthrough default;
    9494                } // if
     95                fallthrough;
    9596      case 3:
    9697                if ( strcmp( argv[2], "d" ) != 0 ) {                    // default ?
     
    9899                        if ( Channels < 1 ) fallthrough default;
    99100                } // if
     101                fallthrough;
    100102      case 2:
    101103                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
     
    103105                        if ( Processors < 1 ) fallthrough default;
    104106                } // if
     107                fallthrough;
    105108          case 1:                                                                                       // use defaults
    106109                break;
     
    121124
    122125    sout | "start";
    123     {   
     126    {
    124127        Consumer c[Consumers];
    125128        {
  • tests/concurrency/channels/contend.cfa

    r3e5fea2 rd923fca  
    130130                        if ( ChannelSize < 1 ) fallthrough default;
    131131                } // if
     132                fallthrough;
    132133          case 2:
    133134                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
     
    135136                        if ( Processors < 1 ) fallthrough default;
    136137                } // if
     138                fallthrough;
    137139          case 1:                                                                                       // use defaults
    138140                break;
  • tests/concurrency/channels/daisy_chain.cfa

    r3e5fea2 rd923fca  
    1717
    1818thread Task {};
    19 void main(Task & this) {
     19void main(Task &) {
    2020    size_t runs = 0;
    2121    int token = 0;
     
    4040            if ( Tasks < 1 ) fallthrough default;
    4141                } // if
     42                fallthrough;
    4243          case 2:
    4344                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
     
    4546                        if ( Processors < 1 ) fallthrough default;
    4647                } // if
     48                fallthrough;
    4749          case 1:                                                                                       // use defaults
    4850                break;
  • tests/concurrency/channels/hot_potato.cfa

    r3e5fea2 rd923fca  
    4545            if ( Tasks < 1 ) fallthrough default;
    4646                } // if
     47                fallthrough;
    4748          case 2:
    4849                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
     
    5051                        if ( Processors < 1 ) fallthrough default;
    5152                } // if
     53                fallthrough;
    5254          case 1:                                                                                       // use defaults
    5355                break;
  • tests/concurrency/channels/pub_sub.cfa

    r3e5fea2 rd923fca  
    9090            if ( Tasks < 1 ) fallthrough default;
    9191                } // if
     92                fallthrough;
    9293          case 2:
    9394                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
     
    9596                        if ( Processors < 1 ) fallthrough default;
    9697                } // if
     98                fallthrough;
    9799          case 1:                                                                                       // use defaults
    98100                break;
Note: See TracChangeset for help on using the changeset viewer.