Fix bad tests

These tests used raw, unescaped parentheses to perform `test` logical
grouping, but the test failures weren't caught because the parser
evaluation errors were not being propagated (fixed in bdbd173e).
This commit is contained in:
Mahmoud Al-Qudsi 2019-04-13 17:07:58 -05:00
parent b2a1da602f
commit 05f52924c1

View File

@ -2330,8 +2330,8 @@ static void test_test() {
// it would be false.
do_test(run_test_test(0, L"0 = 0 -o 0 = 1 -a 0 = 2"));
do_test(run_test_test(0, L"-n 5 -o 0 = 1 -a 0 = 2"));
do_test(run_test_test(1, L"( 0 = 0 -o 0 = 1 ) -a 0 = 2"));
do_test(run_test_test(0, L"0 = 0 -o ( 0 = 1 -a 0 = 2 )"));
do_test(run_test_test(1, L"\\( 0 = 0 -o 0 = 1 \\) -a 0 = 2"));
do_test(run_test_test(0, L"0 = 0 -o \\( 0 = 1 -a 0 = 2 \\)"));
// A few lame tests for permissions; these need to be a lot more complete.
do_test(run_test_test(0, L"-e /bin/ls"));