mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Fix test.
This commit is contained in:
parent
400812a905
commit
0bece94257
@ -1556,10 +1556,12 @@ TEST(FormatterTest, FormatExamples) {
|
||||
EXPECT_EQ("0123456789", s);
|
||||
}
|
||||
|
||||
const char *filename = "nonexistent";
|
||||
FILE *f = fopen(filename, "r");
|
||||
if (!f)
|
||||
fmt::ThrowSystemError(errno, "Cannot open file '{}'") << filename;
|
||||
EXPECT_THROW({
|
||||
const char *filename = "nonexistent";
|
||||
FILE *f = fopen(filename, "r");
|
||||
if (!f)
|
||||
fmt::ThrowSystemError(errno, "Cannot open file '{}'") << filename;
|
||||
}, fmt::SystemError);
|
||||
}
|
||||
|
||||
TEST(FormatterTest, StrNamespace) {
|
||||
|
Loading…
Reference in New Issue
Block a user