From afaf156a425a02a4aa1958113aebd102431c3bf5 Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 11 Oct 2006 08:47:21 +1000 Subject: [PATCH] =?UTF-8?q?Fix=20compilation=20issue=20in=20test=20suite,.?= =?UTF-8?q?=20Thanks=20to=20Martin=20B=C3=A4hr=20for=20the=20report.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20061010224721-ac50b-0bd07f325c2026d991cf9535941060fadd5869cb.gz --- fish_tests.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fish_tests.c b/fish_tests.c index 82bc56158..e0a23d6ff 100644 --- a/fish_tests.c +++ b/fish_tests.c @@ -484,43 +484,43 @@ static void test_parser() say( L"Testing null input to parser" ); - if( !parser_test( 0, 0, 0 ) ) + if( !parser_test( 0, 0, 0, 0 ) ) { err( L"Null input to parser_test undetected" ); } say( L"Testing block nesting" ); - if( !parser_test( L"if; end", 0, 0 ) ) + if( !parser_test( L"if; end", 0, 0, 0 ) ) { err( L"Incomplete if statement undetected" ); } - if( !parser_test( L"if test; echo", 0, 0 ) ) + if( !parser_test( L"if test; echo", 0, 0, 0 ) ) { err( L"Missing end undetected" ); } - if( !parser_test( L"if test; end; end", 0, 0 ) ) + if( !parser_test( L"if test; end; end", 0, 0, 0 ) ) { err( L"Unbalanced end undetected" ); } say( L"Testing detection of invalid use of builtin commands" ); - if( !parser_test( L"case foo", 0, 0 ) ) + if( !parser_test( L"case foo", 0, 0, 0 ) ) { err( L"'case' command outside of block context undetected" ); } - if( !parser_test( L"switch ggg; if true; case foo;end;end", 0, 0 ) ) + if( !parser_test( L"switch ggg; if true; case foo;end;end", 0, 0, 0 ) ) { err( L"'case' command outside of switch block context undetected" ); } - if( !parser_test( L"else", 0, 0 ) ) + if( !parser_test( L"else", 0, 0, 0 ) ) { err( L"'else' command outside of conditional block context undetected" ); } - if( !parser_test( L"break", 0, 0 ) ) + if( !parser_test( L"break", 0, 0, 0 ) ) { err( L"'break' command outside of loop block context undetected" ); } - if( !parser_test( L"exec ls|less", 0, 0 ) || !parser_test( L"echo|return", 0, 0 )) + if( !parser_test( L"exec ls|less", 0, 0, 0 ) || !parser_test( L"echo|return", 0, 0, 0 )) { err( L"Invalid pipe command undetected" ); }