]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Simplify rewrite_dep_file_paths unit test
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 7 Oct 2020 06:54:51 +0000 (08:54 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 7 Oct 2020 06:54:51 +0000 (08:54 +0200)
unittest/test_ccache.cpp

index 7c4f9d4bc79fd2336503502ea3e58ae283aa85b8..b2de677efc2a2f99d37ea003c3b7599f3e6e6fb9 100644 (file)
@@ -148,9 +148,7 @@ TEST_CASE("rewrite_dep_file_paths")
 {
   Context ctx;
 
-  const auto cwd = Util::get_actual_cwd();
-  ctx.actual_cwd = cwd;
-  ctx.apparent_cwd = cwd;
+  const auto cwd = ctx.actual_cwd;
   ctx.has_absolute_include_headers = true;
 
   const auto content =