summaryrefslogtreecommitdiff
path: root/testsuite/false
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/false')
-rw-r--r--testsuite/false/false-is-silent1
-rw-r--r--testsuite/false/false-returns-failure5
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/false/false-is-silent b/testsuite/false/false-is-silent
new file mode 100644
index 0000000..8a9aa0c
--- /dev/null
+++ b/testsuite/false/false-is-silent
@@ -0,0 +1 @@
+busybox false 2>&1 | cmp - /dev/null
diff --git a/testsuite/false/false-returns-failure b/testsuite/false/false-returns-failure
new file mode 100644
index 0000000..30ee299
--- /dev/null
+++ b/testsuite/false/false-returns-failure
@@ -0,0 +1,5 @@
+if busybox false; then
+ return 1
+else
+ return 0
+fi