]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add missing TestContext instantiation
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 1 Jun 2020 14:56:37 +0000 (16:56 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 1 Jun 2020 14:56:37 +0000 (16:56 +0200)
unittest/test_Util.cpp

index ac6f30085b4ce22000b727d35146f7fc077966ae..c04f9ca87186f209f3d92da9d0fa044b0b46d268 100644 (file)
@@ -149,6 +149,8 @@ TEST_CASE("Util::ends_with")
 
 TEST_CASE("Util::fallocate")
 {
+  TestContext test_context;
+
   const char* filename = "test-file";
   int fd = creat(filename, S_IRUSR | S_IWUSR);
   CHECK(Util::fallocate(fd, 10000) == 0);
@@ -162,7 +164,6 @@ TEST_CASE("Util::fallocate")
   CHECK(Util::fallocate(fd, 20000) == 0);
   close(fd);
   CHECK(Stat::stat(filename).size() == 20000);
-  unlink(filename);
 }
 
 TEST_CASE("Util::for_each_level_1_subdir")