X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fread2.sub;h=c4a1f771b493de1fb2e9de1ed7db1aeee969fe7a;hb=3185942a5234e26ab13fa02f9c51d340cec514f8;hp=176cf86365c702ceacfe0d55922656732dc9d509;hpb=f1be666c7d78939ad775078d290bec2758fa29a2;p=platform%2Fupstream%2Fbash.git diff --git a/tests/read2.sub b/tests/read2.sub index 176cf86..c4a1f77 100644 --- a/tests/read2.sub +++ b/tests/read2.sub @@ -1,12 +1,22 @@ a=4 read -t 2 a < /dev/tty -echo $? +estat=$? +if [ $estat -gt 128 ]; then + echo timeout 1: ok +else + echo $estat +fi echo $a sleep 5 | read -t 1 a -echo $? +estat=$? +if [ $estat -gt 128 ]; then + echo timeout 2: ok +else + echo $estat +fi echo $a