Commit 0bece942 authored by Victor Zverovich's avatar Victor Zverovich

Fix test.

parent 400812a9
...@@ -1556,10 +1556,12 @@ TEST(FormatterTest, FormatExamples) { ...@@ -1556,10 +1556,12 @@ TEST(FormatterTest, FormatExamples) {
EXPECT_EQ("0123456789", s); EXPECT_EQ("0123456789", s);
} }
EXPECT_THROW({
const char *filename = "nonexistent"; const char *filename = "nonexistent";
FILE *f = fopen(filename, "r"); FILE *f = fopen(filename, "r");
if (!f) if (!f)
fmt::ThrowSystemError(errno, "Cannot open file '{}'") << filename; fmt::ThrowSystemError(errno, "Cannot open file '{}'") << filename;
}, fmt::SystemError);
} }
TEST(FormatterTest, StrNamespace) { TEST(FormatterTest, StrNamespace) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment