Browse Source

Test: Properly test adding non-existing dotfiles

master
Riyyi 3 years ago
parent
commit
1a9b0d870a
  1. 3
      test/testdotfile.cpp

3
test/testdotfile.cpp

@ -111,10 +111,11 @@ TEST_CASE(AddDotfiles)
TEST_CASE(AddNonExistentDotfiles) TEST_CASE(AddNonExistentDotfiles)
{ {
stderr = Test::TestSuite::the().outputNull(); 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(); stderr = Test::TestSuite::the().outputErr();
EXPECT(!std::filesystem::exists("__non-existent-test-file")); EXPECT(!std::filesystem::exists("__non-existent-test-file"));
removeTestDotfiles({ "__non-existent-test-file" });
} }
TEST_CASE(PullDotfiles) TEST_CASE(PullDotfiles)

Loading…
Cancel
Save