2019-11-19 14:31:44 +01:00
|
|
|
check that runqueue is producing expected results:
|
|
|
|
|
|
|
|
$ [ -n "$TEST_BIN_DIR" ] && export PATH="$TEST_BIN_DIR:$PATH"
|
|
|
|
$ valgrind --quiet --leak-check=full test-runqueue
|
2020-04-23 05:35:23 +02:00
|
|
|
[1/1] start 'sleep 1' (killer)
|
|
|
|
[1/1] killing process (killer)
|
|
|
|
[0/1] finish 'sleep 1' (killer)
|
|
|
|
[0/1] finish 'sleep 1' (killer)
|
|
|
|
[0/1] finish 'sleep 1' (killer)
|
|
|
|
[1/1] start 'sleep 1' (sleeper)
|
|
|
|
[1/1] cancel 'sleep 1' (sleeper)
|
|
|
|
[0/1] finish 'sleep 1' (sleeper)
|
|
|
|
[1/1] start 'sleep 1' (sleeper)
|
|
|
|
[1/1] cancel 'sleep 1' (sleeper)
|
|
|
|
[0/1] finish 'sleep 1' (sleeper)
|
|
|
|
[1/1] start 'sleep 1' (sleeper)
|
|
|
|
[1/1] cancel 'sleep 1' (sleeper)
|
|
|
|
[0/1] finish 'sleep 1' (sleeper)
|
2019-11-19 14:31:44 +01:00
|
|
|
All done!
|
2019-12-08 13:12:47 +01:00
|
|
|
|
|
|
|
$ test-runqueue-san
|
2020-04-23 05:35:23 +02:00
|
|
|
[1/1] start 'sleep 1' (killer)
|
|
|
|
[1/1] killing process (killer)
|
|
|
|
[0/1] finish 'sleep 1' (killer)
|
|
|
|
[0/1] finish 'sleep 1' (killer)
|
|
|
|
[0/1] finish 'sleep 1' (killer)
|
|
|
|
[1/1] start 'sleep 1' (sleeper)
|
|
|
|
[1/1] cancel 'sleep 1' (sleeper)
|
|
|
|
[0/1] finish 'sleep 1' (sleeper)
|
|
|
|
[1/1] start 'sleep 1' (sleeper)
|
|
|
|
[1/1] cancel 'sleep 1' (sleeper)
|
|
|
|
[0/1] finish 'sleep 1' (sleeper)
|
|
|
|
[1/1] start 'sleep 1' (sleeper)
|
|
|
|
[1/1] cancel 'sleep 1' (sleeper)
|
|
|
|
[0/1] finish 'sleep 1' (sleeper)
|
2019-12-08 13:12:47 +01:00
|
|
|
All done!
|