diff --git a/test/testdotfile.cpp b/test/testdotfile.cpp index ac3fea2..08f83d2 100644 --- a/test/testdotfile.cpp +++ b/test/testdotfile.cpp @@ -111,10 +111,11 @@ TEST_CASE(AddDotfiles) TEST_CASE(AddNonExistentDotfiles) { stderr = Test::TestSuite::the().outputNull(); - Dotfile::the().add({ "/tmp/__non-existent-test-file" }); + Dotfile::the().add({ homeDirectory + "/__non-existent-test-file" }); stderr = Test::TestSuite::the().outputErr(); EXPECT(!std::filesystem::exists("__non-existent-test-file")); + removeTestDotfiles({ "__non-existent-test-file" }); } TEST_CASE(PullDotfiles)