From 1a9b0d870aff167c4b9bebe58e0db5befdedba91 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 24 Jan 2022 19:46:41 +0100 Subject: [PATCH] Test: Properly test adding non-existing dotfiles --- test/testdotfile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)