← Commit list

d4dd48f29

Denys Vlasenko
Denys Vlasenko
2020-09-29
SUCCESS Duration: 149s

Subject

shell: add testsuite for "wait $pid" waiting for other tasks

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/ash_test/ash-misc/wait7.right+2 -0
@@ -0,0 +1,2 @@
+Background1
+Ok:0
shell/ash_test/ash-misc/wait7.tests+7 -0
@@ -0,0 +1,7 @@
+sleep 1 && echo "Background1" &
+pid=$!
+sleep 3 && echo "Background2: BUG!" &
+# Shouldn't wait for 2nd bkgd:
+wait $pid
+kill $!
+echo Ok:$?
shell/hush_test/hush-misc/wait7.right+2 -0
@@ -0,0 +1,2 @@
+Background1
+Ok:0
shell/hush_test/hush-misc/wait7.tests+7 -0
@@ -0,0 +1,7 @@
+sleep 1 && echo "Background1" &
+pid=$!
+sleep 3 && echo "Background2: BUG!" &
+# Shouldn't wait for 2nd bkgd:
+wait $pid
+kill $!
+echo Ok:$?