Changeset be1d00c


Ignore:
Timestamp:
Nov 30, 2022, 7:18:38 PM (2 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
master
Children:
dd46fd3
Parents:
5a4b403
Message:

Changed fairness tests to use sched_yield in case exhausting the time slice is what causing test failures

Location:
tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrent/readyQ/leader_spin.cfa

    r5a4b403 rbe1d00c  
    5050        for(i; nthreads) {
    5151                while( threads[i]->idx != lead_idx ) {
    52                         Pause();
     52                        sched_yield();
    5353                }
    5454        }
  • tests/io/away_fair.cfa

    r5a4b403 rbe1d00c  
    4141
    4242                if(last == curr) {
    43                         Pause();
     43                        sched_yield();
    4444                        continue;
    4545                }
  • tests/io/comp_fair.cfa

    r5a4b403 rbe1d00c  
    5252
    5353                if(last == curr) {
    54                         Pause();
     54                        sched_yield();
    5555                        continue;
    5656                }
Note: See TracChangeset for help on using the changeset viewer.