]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Make testdir/failed symlink correct
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 11 Aug 2020 18:45:53 +0000 (20:45 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 11 Aug 2020 18:45:53 +0000 (20:45 +0200)
Regression in d575526c91a8.

test/run

index 86191129ea3c15a861688a9a9ca72282bdc9f219..89e0ec2e38608bc1ad077825b7aec670153ad257 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -513,7 +513,7 @@ START_PWD="$PWD"
 symlink_testdir_on_failure() {
     cd "$START_PWD"
     rm -f "$TEST_FAILED_SYMLINK"
-    ln -s "$TESTDIR" "$TEST_FAILED_SYMLINK"
+    ln -s "$$" "$TEST_FAILED_SYMLINK"
 }
 
 cd $TESTDIR || exit 1