Changeset b8b64c34 for tests


Ignore:
Timestamp:
Feb 27, 2025, 3:17:20 PM (4 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
3483185
Parents:
9506c70
Message:

That should be the rest of the warnings generated from the tests themselves. There are a few that will probably need updates to the compiler to remove those warnings and a few more that should be clean except for a known error.

Location:
tests
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tests/Makefile.am

    r9506c70 rb8b64c34  
    7272        concurrency/actors/poison \
    7373        concurrency/actors/static \
    74         concurrency/actors/types
     74        concurrency/actors/types \
     75        io/away_fair \
     76        io/comp_basic \
     77        io/comp_fair \
     78        io/many_read
    7579
    7680# Tests that need investigation from the CFA team about why they require lax wflags.  Goal is to eliminate this list.
     
    7983        include/includes \
    8084        include/stdincludes \
    81         include/vector-collections \
    82         include/vector-fstream \
    83         include/vector-sequence \
    84         io/away_fair \
    85         io/comp_basic \
    86         io/comp_fair \
    87         io/manipulatorsInput \
    88         io/manipulatorsInput-uchunk \
    89         io/many_read \
    90         raii/ctor-autogen \
    91         raii/dtor-early-exit \
    92         raii/init_once \
    9385        references \
    9486        tuple/tupleCast \
  • TabularUnified tests/io/comp_basic.cfa

    r9506c70 rb8b64c34  
    7575// takes its sweet time so the Reader has to block
    7676thread Writer {};
    77 void main(Writer & this) {
     77void main(Writer &) {
    7878        for(TIMES) {
    7979                block( globals.bar );
  • TabularUnified tests/io/comp_fair.cfa

    r9506c70 rb8b64c34  
    9595// takes its sweet time so the Reader has to block
    9696thread Writer {};
    97 void main(Writer & this) {
     97void main(Writer &) {
    9898        for(TIMES) {
    9999                block( globals.bar );
  • TabularUnified tests/io/manipulatorsInput-uchunk.cfa

    r9506c70 rb8b64c34  
    117117    }
    118118
    119 #else 
     119#else
    120120    #define xstr(s) str(s)
    121121    #define str(s) #s
     
    180180
    181181    // not used
    182     static int true_main(const char * path, const char * env[]) { return 0; }
    183 
     182    static int true_main(const char *, const char * []) { return 0; }
     183    __attribute__((unused)) static void check_main(const char *);
     184    __attribute__((unused)) static void print_status(int);
    184185
    185186#endif
  • TabularUnified tests/io/manipulatorsInput.cfa

    r9506c70 rb8b64c34  
    8181                scanf( "%[^\n]\n", s );                                                 printf( "16 %s\n", s );                         // |get this line\n|
    8282                scanf( "%[^%%]%%\n", s );                                               printf( "17 %s\n", s );                         // |@# this line 1)-{}%\n|
    83                 scanf( "%*[^%%]%%\n", s );                                              printf( "18 %s\n", s );                         // |@# this line 1)-{}%\n|
     83                scanf( "%*[^%%]%%\n" );                                                 printf( "18 %s\n", s );                         // |@# this line 1)-{}%\n|
    8484
    8585                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace                            // ||
     
    9292                scanf( "X%[^Y]Y", s );                                                  printf( "22 %s\n", s );                         // |X           ZC44%Y|
    9393                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace                            // |\n|
    94                 scanf( "X%*[^Y]Y", s );                                                 printf( "23 %s\n", s );                         // |X           ZC44%Y|
     94                scanf( "X%*[^Y]Y" );                                                    printf( "23 %s\n", s );                         // |X           ZC44%Y|
    9595                scanf( "\n" );                                                                  // must start next line                         // |\n|
    9696
     
    105105                scanf( "X%cY", &ch );                                                   printf( "27 %c\n", ch );                        // |x|
    106106                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace                            // |\n|
    107                 scanf( "X%*cY", &ch );                                                  printf( "28 %c\n", ch );                        // |x|
     107                scanf( "X%*cY" );                                                               printf( "28 %c\n", ch );                        // |x|
    108108                scanf( "\n" );                                                                  // must start next line                         // |\n|
    109109        }
  • TabularUnified tests/io/many_read.cfa

    r9506c70 rb8b64c34  
    9595#endif
    9696
    97 void main(reader & this) {
     97void main(reader &) {
    9898        for(50) {
    9999                char data[size];
  • TabularUnified tests/raii/ctor-autogen.cfa

    r9506c70 rb8b64c34  
    11// TODO: add error cases (e.g., use of field constructors for managed types, etc.)
    22
    3 enum Color { R, G, B };
     3enum Colour { R, G, B };
    44
    55// empty struct/union should have generated ctor/dtors
     
    2121// struct/union with members with generated ctor/dtors should themselves have generated ctor/dtors
    2222union PopulatedUnion {
    23         Color c;
     23        Colour c;
    2424        U u;
    2525        S s;
     
    2727
    2828struct PopulatedStruct {
    29         Color c;
     29        Colour c;
    3030        U u;
    3131        S s;
     
    109109        S s;
    110110        U u;
    111         Color e;
     111        Colour e = R;
    112112
    113         // identity(R);  Color constant should be Color which is otype
    114         identity(e);  // Color should be an otype
     113        // identity(R);  Colour constant should be Colour which is otype
     114        identity(e);  // Colour should be an otype
    115115        identity(u);  // U should be an otype
    116116        identity(s);  // S should be an otype
     
    139139        identity(dsi);
    140140        identity(dsd);
    141         // identity(dui); // xxx - codegen errors in generated thunk _temp3 (Box-pass-generated assignment return-temporary)
    142         // identity(dud);
     141        identity(dui);
     142        identity(dud);
    143143        identity(dssi);
    144144        identity(dssf);
  • TabularUnified tests/raii/dtor-early-exit.cfa

    r9506c70 rb8b64c34  
    2323};
    2424
    25 // don't want these called
    26 void ?{}(A & a) { assert( false ); }
    2725void ?{}(A & a, const char * name) { a.name = name; sout | "construct " | name; a.x = (int*)malloc(); }
    28 void ?{}(A & a, const char * name, int * ptr) { assert( false ); }
     26// Don't want these called:
     27void ?{}(A &) { assert( false ); }
     28void ?{}(A &, const char *, int *) { assert( false ); }
    2929
    3030A ?=?(A & a, A b) {  sout | "assign " | a.name | " " | b.name; return a; }
     
    110110                                if (j == 0) {
    111111                                        sout | "continue L2";
    112                                         continue; // destruct y - missing because object that needs to be destructed is not a part of this block, it's a part of the for's block
     112                                        continue L2; // destruct y - missing because object that needs to be destructed is not a part of this block, it's a part of the for's block
    113113                                } else if (j == 1) {
    114114                                        sout | "break L2";
    115                                         break;  // destruct y
     115                                        break L2;  // destruct y
    116116                                } else if (i == 1) {
    117117                                        sout | "continue L1";
     
    222222                if(true) continue;
    223223                int t = 0;
     224                (void)t;
    224225        }
    225226}
  • TabularUnified tests/raii/init_once.cfa

    r9506c70 rb8b64c34  
    7575}
    7676
    77 void ?{}(init_once & x, init_once other) {
     77void ?{}(init_once & x, init_once) {
    7878        x{};  // reuse default ctor
    7979}
     
    131131                                init_once x;
    132132                                init_once y = x;
    133                         } // fall through
     133                        }
     134                                fallthrough;
    134135                        default: {
    135136                                init_once x;
Note: See TracChangeset for help on using the changeset viewer.