Skip to content
Snippets Groups Projects
  • Nadav Har'El's avatar
    ade5bc3e
    Tests: add trivial sleep test · ade5bc3e
    Nadav Har'El authored
    
    Add a trivial sleep() test, which sleep()s for 2 seconds, and verifies
    that this finishes and has slept for roughly 2 seconds.
    
    I used this for debugging issue #26 - the attempts there ruined timers,
    and in particular this trivial test hangs, as sleep() never returns.
    
    (A note to our future automatic testing implementor: We need to allow
    for the possibility that a test doesn't cleanly fail, but rather hangs,
    and consider this a failure too).
    
    Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
    ade5bc3e
    History
    Tests: add trivial sleep test
    Nadav Har'El authored
    
    Add a trivial sleep() test, which sleep()s for 2 seconds, and verifies
    that this finishes and has slept for roughly 2 seconds.
    
    I used this for debugging issue #26 - the attempts there ruined timers,
    and in particular this trivial test hangs, as sleep() never returns.
    
    (A note to our future automatic testing implementor: We need to allow
    for the possibility that a test doesn't cleanly fail, but rather hangs,
    and consider this a failure too).
    
    Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>