aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-05-26 17:01:33 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-05-26 22:56:52 +0800
commit101979fc6ddbe2ef2c49a7bf53d219338e91177a (patch)
tree3f0b2c76e334056223f99e188e04ec833875727d /test
parentBuiltin: source returns 1 if the script is illegal (diff)
downloadlibbash-101979fc6ddbe2ef2c49a7bf53d219338e91177a.tar.gz
libbash-101979fc6ddbe2ef2c49a7bf53d219338e91177a.tar.bz2
libbash-101979fc6ddbe2ef2c49a7bf53d219338e91177a.zip
Test: improve test coverage for public API
Diffstat (limited to 'test')
-rw-r--r--test/api_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/api_test.cpp b/test/api_test.cpp
index 7e1bd23..a724401 100644
--- a/test/api_test.cpp
+++ b/test/api_test.cpp
@@ -79,4 +79,9 @@ TEST(libbashapi, preload)
variables,
functions);
EXPECT_NE(0, result);
+ result = libbash::interpret(get_src_dir() + std::string("/scripts/source_true.sh"),
+ get_src_dir() + std::string("/scripts/illegal_script.sh"),
+ variables,
+ functions);
+ EXPECT_NE(0, result);
}