svn commit: trunk/busybox/shell/ash_test/ash-signals

vda at busybox.net vda at busybox.net
Mon Oct 27 14:33:04 UTC 2008


Author: vda
Date: 2008-10-27 07:33:03 -0700 (Mon, 27 Oct 2008)
New Revision: 23820

Log:
ash: add testcase for bug 5304



Added:
   trunk/busybox/shell/ash_test/ash-signals/reap1.right
   trunk/busybox/shell/ash_test/ash-signals/reap1.tests


Changeset:
Added: trunk/busybox/shell/ash_test/ash-signals/reap1.right
===================================================================
--- trunk/busybox/shell/ash_test/ash-signals/reap1.right	                        (rev 0)
+++ trunk/busybox/shell/ash_test/ash-signals/reap1.right	2008-10-27 14:33:03 UTC (rev 23820)
@@ -0,0 +1 @@
+Ok

Added: trunk/busybox/shell/ash_test/ash-signals/reap1.tests
===================================================================
--- trunk/busybox/shell/ash_test/ash-signals/reap1.tests	                        (rev 0)
+++ trunk/busybox/shell/ash_test/ash-signals/reap1.tests	2008-10-27 14:33:03 UTC (rev 23820)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Must not find us alive
+{ sleep 2; kill -9 $$; } 2>/dev/null &
+
+sleep 1 &
+PID=$!
+
+# We must exit the loop in one second.
+# We had bug 5304: builtins never waited for exited children
+while kill -0 $PID >/dev/null 2>&1; do
+    true
+done
+echo Ok


Property changes on: trunk/busybox/shell/ash_test/ash-signals/reap1.tests
___________________________________________________________________
Name: svn:executable
   + *




More information about the busybox-cvs mailing list