aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-10-11 08:47:21 +1000
committerGravatar axel <axel@liljencrantz.se>2006-10-11 08:47:21 +1000
commitafaf156a425a02a4aa1958113aebd102431c3bf5 (patch)
tree74a64db3f3e4592270b38e4fd5c9876cb4030a9e
parentc4f3b5e9efcd9661ec0b5e156f5a74ef7bacbb17 (diff)
Fix compilation issue in test suite,. Thanks to Martin Bähr for the report.
darcs-hash:20061010224721-ac50b-0bd07f325c2026d991cf9535941060fadd5869cb.gz
-rw-r--r--fish_tests.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fish_tests.c b/fish_tests.c
index 82bc5615..e0a23d6f 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" );
}