mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Update test.
This commit is contained in:
parent
2e03963e9e
commit
421cb0ad18
@ -246,7 +246,7 @@ TEST(FileTest, DupNoRetry) {
|
||||
int stdout_fd = FMT_POSIX(fileno(stdout));
|
||||
dup_count = 1;
|
||||
EXPECT_SYSTEM_ERROR(File::dup(stdout_fd), EINTR,
|
||||
str(fmt::Format("cannot duplicate file descriptor {}") << stdout_fd));
|
||||
str(fmt::format("cannot duplicate file descriptor {}", stdout_fd)));
|
||||
dup_count = 0;
|
||||
}
|
||||
|
||||
@ -254,8 +254,8 @@ TEST(FileTest, Dup2Retry) {
|
||||
int stdout_fd = FMT_POSIX(fileno(stdout));
|
||||
File f1 = File::dup(stdout_fd), f2 = File::dup(stdout_fd);
|
||||
EXPECT_RETRY(f1.dup2(f2.descriptor()), dup2,
|
||||
str(fmt::Format("cannot duplicate file descriptor {} to {}")
|
||||
<< f1.descriptor() << f2.descriptor()));
|
||||
str(fmt::format("cannot duplicate file descriptor {} to {}",
|
||||
f1.descriptor(), f2.descriptor())));
|
||||
}
|
||||
|
||||
TEST(FileTest, Dup2NoExceptRetry) {
|
||||
|
Loading…
Reference in New Issue
Block a user