8000 Fix deleting non existing file in test/iobuf_unittest.cpp when writin… · wwbmmm/incubator-brpc@0c7f178 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Fix deleting non existing file in test/iobuf_unittest.cpp when writin…
Browse files Browse the repository at this point in the history
…g to dev_null(apache#2346)
  • Loading branch information
zhaixiaojuan authored Aug 6, 2023
1 parent 0924f7f commit 0c7f178
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/iobuf_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,9 @@ TEST_F(IOBufTest, append_store_append_cut) {
if (!write_to_dev_null) {
ASSERT_EQ(0, system(cmd));
}
remove(name);
if (!write_to_dev_null) {
remove(name);
}
}

for (size_t i = 0; i < ARRAY_SIZE(w); ++i) {
Expand Down

0 comments on commit 0c7f178

Please sign in to comment.
0