Skip to content

Commit 1d1dae7

Browse files
committed
[UTest] Make sure ls_out.txt is created in FnTest.cpp
1 parent 21a4e51 commit 1d1dae7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unittest/util/FnTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ TEST_CASE("exec", "[core][util][fn]")
831831
SECTION("Valid executable with arguments")
832832
{
833833
CHECK_NOTHROW(exec("/bin/sh", { "-c", "ls > /tmp/ls_out.txt" }));
834+
REQUIRE(std::filesystem::exists("/tmp/ls_out.txt"));
834835
CHECK_NOTHROW(exec("/bin/sh", { "-c", "rm /tmp/ls_out.txt" }));
835836
}
836837
}

0 commit comments

Comments
 (0)