From 3e889781acfc83f74ce5dc7f70321db204177f79 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 31 Jan 2021 02:57:58 -0600 Subject: Yank TODO note-to-self accidentally checked in, and fix "make test" standalone. --- toys/posix/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/posix') 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>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 ']'"); -- cgit v1.2.3