Changeset 1dec8f3 for tests


Ignore:
Timestamp:
Sep 22, 2025, 2:33:42 PM (6 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master, stuck-waitfor-destruct
Children:
bb5b866
Parents:
7ca6bf1 (diff), 295ed2d1 (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.
Message:

Merge remote-tracking branch 'refs/remotes/origin/master'

Location:
tests
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • tests/collections/.expect/string-api-coverage.txt

    r7ca6bf1 r1dec8f3  
    86863 0 0 11 26 0
    8787abc   abcdefghijk abcdefghijklmnopqrstuvwxyz
     888 3 3
     891FeC34aB .,; XXX
     900 0 3
     911  XXX
  • tests/collections/string-api-coverage.cfa

    r7ca6bf1 r1dec8f3  
    22#include <string_sharectx.hfa>
    33#include <fstream.hfa>
    4 
     4#include <ctype.h>                                                                              // isxdigit, ispunct, isupper
    55
    66// Purpose: call each function in string.hfa, top to bottom
     
    407407        | (return string)include( alphabet, cc_alphabet )  // "abcdefghijklmnopqrstuvwxyz"
    408408        | (return string)exclude( alphabet, cc_alphabet ); // ""
     409
     410        sout
     411                | (return size_t)include( "1FeC34aB", isxdigit )
     412                | (return size_t)include( ".,;’!\"", ispunct )
     413                | (return size_t)include( "XXXx", isupper );
     414
     415        sout
     416                | (return string)include( "1FeC34aB", isxdigit )
     417                | (return string)include( ".,;’!\"", ispunct )
     418                | (return string)include( "XXXx", isupper );
     419
     420        sout
     421                | (return size_t)exclude( "1FeC34aB", isdigit )
     422                | (return size_t)exclude( ".,;’!\"", ispunct )
     423                | (return size_t)exclude( "XXXx", islower );
     424
     425        sout
     426                | (return string)exclude( "1FeC34aB", isalpha )
     427                | (return string)exclude( ".,;’!\"", ispunct )
     428                | (return string)exclude( "XXXx", islower );
    409429}
  • tests/concurrency/unified_locking/locks.cfa

    r7ca6bf1 r1dec8f3  
    77
    88multiple_acquisition_lock m;
    9 condition_variable( multiple_acquisition_lock ) c_m;
     9cond_lock( multiple_acquisition_lock ) c_m;
    1010
    1111single_acquisition_lock s;
    12 condition_variable( single_acquisition_lock ) c_s;
     12cond_lock( single_acquisition_lock ) c_s;
    1313
    1414owner_lock o;
    15 condition_variable( owner_lock ) c_o;
     15cond_lock( owner_lock ) c_o;
    1616
    1717exp_backoff_then_block_lock l;
    18 condition_variable( exp_backoff_then_block_lock ) c_l;
     18cond_lock( exp_backoff_then_block_lock ) c_l;
    1919
    2020fast_block_lock f;
  • tests/concurrency/unified_locking/pthread_locks.cfa

    r7ca6bf1 r1dec8f3  
    1212
    1313owner_lock l2;
    14 condition_variable( owner_lock ) c2;
     14cond_lock( owner_lock ) c2;
    1515
    1616volatile int counter = 0;
  • tests/concurrency/unified_locking/timeout_lock.cfa

    r7ca6bf1 r1dec8f3  
    77
    88multiple_acquisition_lock m, n;
    9 condition_variable( multiple_acquisition_lock ) c_m, c_n;
     9cond_lock( multiple_acquisition_lock ) c_m, c_n;
    1010
    1111const unsigned int NoOfTimes = 20;
     
    7373        processor p[2];
    7474        printf("Start Test 1: surface testing condition variable timeout routines\n");
    75         wait( c_m, 1`ns );                                                                                                              // bool wait( condition_variable(L) & this, Duration duration );
    76         wait( c_m, 10, 1`ns );                                                                                                  // bool wait( condition_variable(L) & this, uintptr_t info, Duration duration );
    77         lock(m); wait( c_m, m, 1`ns ); unlock(m);                                                               // bool wait( condition_variable(L) & this, L & l, Duration duration );
    78         lock(m); wait( c_m, m, 10, 1`ns ); unlock(m);                                                   // bool wait( condition_variable(L) & this, L & l, uintptr_t info, Duration duration );
     75        wait( c_m, 1`ns );                                                                                                              // bool wait( cond_lock(L) & this, Duration duration );
     76        wait( c_m, 10, 1`ns );                                                                                                  // bool wait( cond_lock(L) & this, uintptr_t info, Duration duration );
     77        lock(m); wait( c_m, m, 1`ns ); unlock(m);                                                               // bool wait( cond_lock(L) & this, L & l, Duration duration );
     78        lock(m); wait( c_m, m, 10, 1`ns ); unlock(m);                                                   // bool wait( cond_lock(L) & this, L & l, uintptr_t info, Duration duration );
    7979        printf("Done Test 1\n");
    8080
Note: See TracChangeset for help on using the changeset viewer.