Skip to content

Commit

Permalink
More ConfigManager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daboehme committed Jun 6, 2019
1 parent 2b66fcf commit 6821373
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/caliper/test/test_configmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ TEST(ConfigManagerTest, ParseErrors) {

EXPECT_EQ(list.size(), 0);
}

{
cali::ConfigManager mgr(" runtime-report(output)");

EXPECT_TRUE(mgr.error());
EXPECT_STREQ(mgr.error_msg().c_str(), "Expected '=' after output");
}

{
cali::ConfigManager mgr("event-trace(output=stdout");

EXPECT_TRUE(mgr.error());
EXPECT_STREQ(mgr.error_msg().c_str(), "Expected ')'");
}
}

TEST(ConfigManagerTest, ParseConfig) {
Expand Down

0 comments on commit 6821373

Please sign in to comment.