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

vda at busybox.net vda at busybox.net
Mon Mar 5 20:46:47 UTC 2007


Author: vda
Date: 2007-03-05 12:46:46 -0800 (Mon, 05 Mar 2007)
New Revision: 18012

Log:
add ash testcases


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


Changeset:
Added: trunk/busybox/shell/ash_test/ash-invert/invert.right
===================================================================
--- trunk/busybox/shell/ash_test/ash-invert/invert.right	                        (rev 0)
+++ trunk/busybox/shell/ash_test/ash-invert/invert.right	2007-03-05 20:46:46 UTC (rev 18012)
@@ -0,0 +1,10 @@
+1
+1
+1
+0
+0
+1
+0
+1
+0
+1

Added: trunk/busybox/shell/ash_test/ash-invert/invert.tests
===================================================================
--- trunk/busybox/shell/ash_test/ash-invert/invert.tests	                        (rev 0)
+++ trunk/busybox/shell/ash_test/ash-invert/invert.tests	2007-03-05 20:46:46 UTC (rev 18012)
@@ -0,0 +1,19 @@
+# tests of return value inversion
+# placeholder for future expansion
+
+# user subshells (...) did this wrong in bash versions before 2.04
+
+! ( echo hello | grep h >/dev/null 2>&1 ); echo $?
+! echo hello | grep h >/dev/null 2>&1 ; echo $?
+
+! true ; echo $?
+! false; echo $?
+
+! (false) ; echo $?
+! (true); echo $?
+
+! true | false ; echo $?
+! false | true ; echo $?
+
+! (true | false) ; echo $?
+! (false | true) ; echo $?


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




More information about the busybox-cvs mailing list