From 101979fc6ddbe2ef2c49a7bf53d219338e91177a Mon Sep 17 00:00:00 2001 From: Mu Qiao Date: Thu, 26 May 2011 17:01:33 +0800 Subject: Test: improve test coverage for public API --- test/api_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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); } -- cgit v1.2.3-65-gdbad