delay ();
i = tkill (inferior, SIGSTOP);
assert (i == 0);
+ /* Wait till it gets stopped otherwise we may get STATE_ENOENT below. */
+ STATE (inferior, 1 << STATE_STOPPED);
delay ();
i = tkill (inferior, SIGALRM);
assert (i == 0);
delay ();
i = tkill (inferior, SIGCONT);
assert (i == 0);
+ /* This is a race, we may not prove the successful SIGALRM delivery by it. */
STATE (inferior, 1 << STATE_RUNNING);
murder (inferior);
}