1 # connect gdb to Valgrind gdbserver:
2 target remote | ../vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-solaris-nlcontrolc
3 echo vgdb launched process attached\n
4 monitor v.set vgdb-error 999999
7 # simulate control-c in a few seconds
8 shell ../simulate_control_c --vgdb-prefix=./vgdb-prefix-solaris-nlcontrolc 1 grep main nlcontrolc.stderr.out
12 # Here, all tasks should be blocked in a loooonnnng select, all in WaitSys
14 # After the timeout expires, threads will unblock.
16 # We will change the burning parameters in a few seconds
17 shell ../simulate_control_c --vgdb-prefix=./vgdb-prefix-solaris-nlcontrolc 6 grep CPU nlcontrolc.stdoutB.out
19 echo Now threads are burning CPU\n
22 # Threads are burning cpu now
23 # We would like to test info threads here, but which thread are Runnable or Yielding
30 # and the process should stop very quickly now