# file : tests/test/script/builtin/sleep.testscript # copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file .include ../common.testscript : unknown-option : $c <"sleep: unknown option '-u'" == 1 EOI : success : $c <'sleep 1' && $b : no-time : : Test passing no time interval. : $c <'sleep 2>"sleep: missing time interval" != 0' && $b : invalid-time : : Test passing invalid time interval. : $c <"sleep: invalid time interval '1a'" != 0 EOI : unexpected-arg : : Test passing extra argument. : $c <"sleep: unexpected argument '1'" != 0 EOI