File: pthread-cond-timedwait_ok.tesh

package info (click to toggle)
simgrid 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 38,980 kB
  • sloc: cpp: 123,583; ansic: 66,779; python: 8,358; java: 6,406; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,337; perl: 1,436; makefile: 105; lisp: 49; javascript: 7; sed: 6
file content (12 lines) | stat: -rw-r--r-- 403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12

# MUSL changes the output order
! output sort

$ env ASAN_OPTIONS=verify_asan_link_order=0:$ASAN_OPTIONS LD_PRELOAD=${libdir:=.}/libsthread.so ./pthread-cond-timedwait_ok
> [1.000000] [sthread/INFO] All threads exited. Terminating the simulation.
> Thread: Wait for 1s
> main: sleep 5ms
> main: signal the condition
> Thread: got signaled!
> Thread: Wait for 1s
> Thread: waiting the signal timeouted!