diff --git a/tests/data/test1169 b/tests/data/test1169
index ea123c2e30..bba5d131e5 100644
--- a/tests/data/test1169
+++ b/tests/data/test1169
@@ -16,14 +16,13 @@ Verify that runtests.pl accepts an -L option
-%SRCDIR/runtests.pl -L %LOGDIR/test1196-library.pl
+%SRCDIR/runtests.pl -L %PWD/%LOGDIR/test%TESTNUMBER-library.pl
# Create a simple perl snippet that lets runtests.pl
# exit with a code we can check.
-
-echo 'exit 123' > %LOGDIR/test1196-library.pl
-
-
+
+exit 123
+