diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-01-02 20:45:42 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-01-02 20:45:42 +0000 |
commit | eb169d0430f457dbf87544e488dff22276c009d4 (patch) | |
tree | 98e7d033a7c395d5b44f1c580206fd0e6481dbf1 | |
parent | 40eaf38eeb910e47a28a8b13be2d465cf7701f8f (diff) | |
download | busybox-w32-eb169d0430f457dbf87544e488dff22276c009d4.tar.gz busybox-w32-eb169d0430f457dbf87544e488dff22276c009d4.tar.bz2 busybox-w32-eb169d0430f457dbf87544e488dff22276c009d4.zip |
* cmp/cmp-detects-difference: Simplify return code negation.
* false/false-returns-failure: Likewise.
* tar/tar-demands-at-least-one-ctx: Likewise.
* tar/tar-demands-at-most-one-ctx: Likewise.
git-svn-id: svn://busybox.net/trunk/busybox@3995 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | testsuite/cmp/cmp-detects-difference | 6 | ||||
-rw-r--r-- | testsuite/false/false-returns-failure | 6 | ||||
-rw-r--r-- | testsuite/tar/tar-demands-at-least-one-ctx | 6 | ||||
-rw-r--r-- | testsuite/tar/tar-demands-at-most-one-ctx | 6 |
4 files changed, 4 insertions, 20 deletions
diff --git a/testsuite/cmp/cmp-detects-difference b/testsuite/cmp/cmp-detects-difference index b5544f9a8..aa0744487 100644 --- a/testsuite/cmp/cmp-detects-difference +++ b/testsuite/cmp/cmp-detects-difference | |||
@@ -1,7 +1,3 @@ | |||
1 | echo foo >foo | 1 | echo foo >foo |
2 | echo bar >bar | 2 | echo bar >bar |
3 | if busybox cmp -s foo bar; then | 3 | ! busybox cmp -s foo bar |
4 | return 1 | ||
5 | else | ||
6 | return 0 | ||
7 | fi | ||
diff --git a/testsuite/false/false-returns-failure b/testsuite/false/false-returns-failure index 30ee2997f..1a061f286 100644 --- a/testsuite/false/false-returns-failure +++ b/testsuite/false/false-returns-failure | |||
@@ -1,5 +1 @@ | |||
1 | if busybox false; then | ! busybox false | |
2 | return 1 | ||
3 | else | ||
4 | return 0 | ||
5 | fi | ||
diff --git a/testsuite/tar/tar-demands-at-least-one-ctx b/testsuite/tar/tar-demands-at-least-one-ctx index 3ac58e89e..85e7f6059 100644 --- a/testsuite/tar/tar-demands-at-least-one-ctx +++ b/testsuite/tar/tar-demands-at-least-one-ctx | |||
@@ -1,5 +1 @@ | |||
1 | if busybox tar v; then | ! busybox tar v | |
2 | return 1 | ||
3 | else | ||
4 | return 0 | ||
5 | fi | ||
diff --git a/testsuite/tar/tar-demands-at-most-one-ctx b/testsuite/tar/tar-demands-at-most-one-ctx index be2168135..130d0e7f9 100644 --- a/testsuite/tar/tar-demands-at-most-one-ctx +++ b/testsuite/tar/tar-demands-at-most-one-ctx | |||
@@ -1,5 +1 @@ | |||
1 | if busybox tar tx; then | ! busybox tar tx | |
2 | return 1 | ||
3 | else | ||
4 | return 0 | ||
5 | fi | ||