Skip to content

Commit 02a1909

Browse files
committed
odb: add check for e.what()
Signed-off-by: Peter Gadfort <[email protected]>
1 parent ca5f547 commit 02a1909

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/odb/test/cpp/Test3DBloxParser.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ TEST_F(SimpleDbFixture, test_bump_map_reader_multiple_bterms)
308308
try {
309309
parser.readBMap(path);
310310
FAIL() << "Expected exception for multiple BTerms connected to same net.";
311-
} catch (const std::runtime_error&) {
311+
} catch (const std::runtime_error& e) {
312+
EXPECT_STREQ(e.what(), "ODB-0542");
312313
}
313314
}
314315

@@ -349,7 +350,8 @@ TEST_F(SimpleDbFixture, test_bump_map_reader_no_bterms)
349350
try {
350351
parser.readBMap(path);
351352
FAIL() << "Expected exception for no BTerms connected to net.";
352-
} catch (const std::runtime_error&) {
353+
} catch (const std::runtime_error& e) {
354+
EXPECT_STREQ(e.what(), "ODB-0544");
353355
}
354356
}
355357

0 commit comments

Comments
 (0)