← Commit list

bcf1fa80f

Denys Vlasenko
Denys Vlasenko
2011-05-09
FAILED Duration: 234s

Subject

hush: add tests for interrupting read

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush_test/hush-trap/signal_read1.right+1 -0
@@ -0,0 +1 @@
+Got HUP:0
shell/hush_test/hush-trap/signal_read1.tests+5 -0
@@ -0,0 +1,5 @@
+(sleep 1; kill -HUP $$) &
+trap 'echo "Got HUP:$?"; exit' HUP
+while true; do
+ read ignored
+done
shell/hush_test/hush-trap/signal_read2.right+2 -0
@@ -0,0 +1,2 @@
+HUP
+Done:129
shell/hush_test/hush-trap/signal_read2.tests+7 -0
@@ -0,0 +1,7 @@
+$THIS_SH -c '
+(sleep 1; kill -HUP $$) &
+while true; do
+ read ignored
+done
+'
+echo "Done:$?"
shell/hush_test/run-all+6 -4
@@ -48,8 +48,9 @@ do_test()
*.orig|*~) ;;
#*) echo $x ; sh $x ;;
*)
+ echo -n "$1/$x:"
sh "$x" >"../$1-$x.fail" 2>&1 && \
- { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail";
+ { { echo " ok"; rm "../$1-$x.fail"; } || echo " fail"; }
;;
esac
done
@@ -60,6 +61,7 @@ do_test()
name="${x%%.tests}"
test -f "$name.right" || continue
# echo Running test: "$x"
+ echo -n "$1/$x:"
(
"$THIS_SH" "./$x" >"$name.xx" 2>&1
# filter C library differences
@@ -70,9 +72,9 @@ do_test()
diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"
)
case $? in
- 0) echo "$1/$x: ok";;
- 77) echo "$1/$x: skip (feature disabled)";;
- *) echo "$1/$x: fail"; tret=1;;
+ 0) echo " ok";;
+ 77) echo " skip (feature disabled)";;
+ *) echo " fail"; tret=1;;
esac
done
exit ${tret}