Changeset 0e8f4c6 for tests


Ignore:
Timestamp:
Jul 20, 2023, 2:09:37 PM (17 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
c03c1ac
Parents:
7a2c6b18
Message:

refactored test to now use remove() in waituntil

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrency/waituntil/repeat_close.cfa

    r7a2c6b18 r0e8f4c6  
    3131    try {
    3232        for( ;; ) {
    33             // waituntil( remove(F) ) { F_removes++; }
    34             // or waituntil( remove(E) ) { E_removes++; }
    35             // or waituntil( remove(D) ) { D_removes++; }
    36             // or waituntil( remove(C) ) { C_removes++; }
    37             // or waituntil( remove(B) ) { B_removes++; }
    38             // or waituntil( remove(A) ) { A_removes++; }
    39             waituntil( in << F ) { F_removes++; }
    40             or waituntil( in << E ) { E_removes++; }
    41             or waituntil( in << D ) { D_removes++; }
    42             or waituntil( in << C ) { C_removes++; }
    43             or waituntil( in << B ) { B_removes++; }
    44             or waituntil( in << A ) { A_removes++; }
     33            waituntil( remove(F) ) { F_removes++; }
     34            or waituntil( remove(E) ) { E_removes++; }
     35            or waituntil( remove(D) ) { D_removes++; }
     36            or waituntil( remove(C) ) { C_removes++; }
     37            or waituntil( remove(B) ) { B_removes++; }
     38            or waituntil( remove(A) ) { A_removes++; }
    4539        }
    4640    } catchResume ( channel_closed * e ) { } // continue to remove until would block
Note: See TracChangeset for help on using the changeset viewer.