diff options
author | Rob Landley <rob@landley.net> | 2021-01-31 02:57:58 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-01-31 02:57:58 -0600 |
commit | 3e889781acfc83f74ce5dc7f70321db204177f79 (patch) | |
tree | 2d31188b2cfbd2cbbd11bc10724be885d36408c0 /toys/posix | |
parent | a577b476e45f9185ecfcc185f8d283a2e77caeee (diff) | |
download | toybox-3e889781acfc83f74ce5dc7f70321db204177f79.tar.gz |
Yank TODO note-to-self accidentally checked in, and fix "make test" standalone.
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/test.c b/toys/posix/test.c index a56511e5..2f2dd918 100644 --- a/toys/posix/test.c +++ b/toys/posix/test.c @@ -29,7 +29,7 @@ config TEST --- Tests with one argument on each side of an operator: Two strings: = are identical != differ < aaa<bbb > bbb>aaa - ~= matches regex + Two integers: -eq equal -gt first > second -lt first < second -ne not equal -ge first >= second -le first <= second @@ -100,7 +100,7 @@ void test_main(void) int pos, paren, pstack, result = 0; toys.exitval = 2; - if (!strcmp("[", toys.which->name)) + if (CFG_TOYBOX && !strcmp("[", toys.which->name)) if (!toys.optc || strcmp("]", toys.optargs[--toys.optc])) error_exit("Missing ']'"); |