]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1169: fix so it works properly everywhere 10917/head
authorDan Fandrich <dan@coneharvesters.com>
Mon, 10 Apr 2023 18:05:55 +0000 (11:05 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 10 Apr 2023 18:50:51 +0000 (11:50 -0700)
- Use an absolute path for the -L option since the module isn't in the
  perl path
- Create the needed test file in a <file> section; <precheck> isn't
  intended for this
- Fix the test number in the file name, which was wrong

Follow-up to f754990a

Ref: #10818
Fixes #10889
Closes #10917

tests/data/test1169

index ea123c2e30156c044df2b0c8f763c7fbd544048f..bba5d131e5adffe1d015f52d1fc87cd1fd8ec7bf 100644 (file)
@@ -16,14 +16,13 @@ Verify that runtests.pl accepts an -L option
 </name>
 
 <command type="perl">
-%SRCDIR/runtests.pl -L %LOGDIR/test1196-library.pl
+%SRCDIR/runtests.pl -L %PWD/%LOGDIR/test%TESTNUMBER-library.pl
 </command>
 # Create a simple perl snippet that lets runtests.pl
 # exit with a code we can check.
-<precheck>
-echo 'exit 123' > %LOGDIR/test1196-library.pl
-</precheck>
-
+<file name="%LOGDIR/test%TESTNUMBER-library.pl">
+exit 123
+</file>
 </client>
 
 <verify>