summaryrefslogtreecommitdiff
path: root/i/pc104/initrd/conf/busybox/testsuite/cmp/cmp-detects-difference
diff options
context:
space:
mode:
Diffstat (limited to 'i/pc104/initrd/conf/busybox/testsuite/cmp/cmp-detects-difference')
-rw-r--r--i/pc104/initrd/conf/busybox/testsuite/cmp/cmp-detects-difference9
1 files changed, 9 insertions, 0 deletions
diff --git a/i/pc104/initrd/conf/busybox/testsuite/cmp/cmp-detects-difference b/i/pc104/initrd/conf/busybox/testsuite/cmp/cmp-detects-difference
new file mode 100644
index 0000000..b9bb628
--- /dev/null
+++ b/i/pc104/initrd/conf/busybox/testsuite/cmp/cmp-detects-difference
@@ -0,0 +1,9 @@
+echo foo >foo
+echo bar >bar
+set +e
+busybox cmp -s foo bar
+if [ $? != 0 ] ; then
+ exit 0;
+fi
+
+exit 1;