Home | History | Annotate | Download | only in tests
      1 
      2 initialise a barrier with zero count
      3 ---Thread-Announcement------------------------------------------
      4 
      5 Thread #x is the program's root thread
      6 
      7 ----------------------------------------------------------------
      8 
      9 Thread #x: pthread_barrier_init: 'count' argument is zero
     10    at 0x........: pthread_barrier_init (hg_intercepts.c:...)
     11    by 0x........: main (bar_bad.c:39)
     12 
     13 ----------------------------------------------------------------
     14 
     15 Thread #x's call to pthread_barrier_init failed
     16    with error code 22 (EINVAL: Invalid argument)
     17    at 0x........: pthread_barrier_init (hg_intercepts.c:...)
     18    by 0x........: main (bar_bad.c:39)
     19 
     20 
     21 initialise a barrier twice
     22 ----------------------------------------------------------------
     23 
     24 Thread #x: pthread_barrier_init: barrier is already initialised
     25    at 0x........: pthread_barrier_init (hg_intercepts.c:...)
     26    by 0x........: main (bar_bad.c:45)
     27 
     28 
     29 initialise a barrier which has threads waiting on it
     30 ----------------------------------------------------------------
     31 
     32 Thread #x: pthread_barrier_init: barrier is already initialised
     33    at 0x........: pthread_barrier_init (hg_intercepts.c:...)
     34    by 0x........: main (bar_bad.c:57)
     35 
     36 ----------------------------------------------------------------
     37 
     38 Thread #x: pthread_barrier_init: threads are waiting at barrier
     39    at 0x........: pthread_barrier_init (hg_intercepts.c:...)
     40    by 0x........: main (bar_bad.c:57)
     41 
     42 
     43 destroy a barrier that has waiting threads
     44 ----------------------------------------------------------------
     45 
     46 Thread #x: pthread_barrier_destroy: threads are waiting at barrier
     47    at 0x........: pthread_barrier_destroy (hg_intercepts.c:...)
     48    by 0x........: main (bar_bad.c:69)
     49 
     50 ----------------------------------------------------------------
     51 
     52 Thread #x's call to pthread_barrier_destroy failed
     53    with error code 16 (EBUSY: Device or resource busy)
     54    at 0x........: pthread_barrier_destroy (hg_intercepts.c:...)
     55    by 0x........: main (bar_bad.c:69)
     56 
     57 
     58 destroy a barrier that was never initialised
     59 ----------------------------------------------------------------
     60 
     61 Thread #x: pthread_barrier_destroy: barrier was never initialised
     62    at 0x........: pthread_barrier_destroy (hg_intercepts.c:...)
     63    by 0x........: main (bar_bad.c:80)
     64 
     65