aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-21 19:17:02 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-06-21 19:21:39 +0800
commit88edafb98b0bbb1beee98b2cd538b887a844215f (patch)
tree3ba4c4d970d894b01ed293f5f80c9a21562f782a /test
parentParser: remove the here_string_op rule (diff)
downloadlibbash-88edafb98b0bbb1beee98b2cd538b887a844215f.tar.gz
libbash-88edafb98b0bbb1beee98b2cd538b887a844215f.tar.bz2
libbash-88edafb98b0bbb1beee98b2cd538b887a844215f.zip
Parser: support writing C++ code in the grammar
Diffstat (limited to 'test')
-rw-r--r--test/post_check.cpp4
-rwxr-xr-xtest/verify_error_output_test.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/post_check.cpp b/test/post_check.cpp
index 2a411f8..3f0531e 100644
--- a/test/post_check.cpp
+++ b/test/post_check.cpp
@@ -35,12 +35,12 @@ static void check_file_size(const char *path, uintmax_t size_max)
TEST(post_check, lexer_size)
{
- check_file_size("libbashLexer.c", 512 * 1024);
+ check_file_size("libbashLexer.cpp", 512 * 1024);
}
TEST(post_check, parser_size)
{
- check_file_size("libbashParser.c", 3*1024*1024);
+ check_file_size("libbashParser.cpp", 3*1024*1024);
}
TEST(post_check, walker_size)
diff --git a/test/verify_error_output_test.sh b/test/verify_error_output_test.sh
index ebc5b3c..fa6b50d 100755
--- a/test/verify_error_output_test.sh
+++ b/test/verify_error_output_test.sh
@@ -2,4 +2,4 @@
illegal="${srcdir}/scripts/illegal_script.sh"
output=$(./variable_printer "$illegal" 2>&1)
-[[ $output == "${illegal}(1) : error 3 : 130:1: command_atom : ( compound_command | function | simple_command );, at offset 3"* ]]
+[[ $output == "${illegal}(1) : error 3 : 120:1: command_atom : ( compound_command | function | simple_command );, at offset 3"* ]]