test1222: fix for out-of-tree and no-libcurl-manual builds

Before this patch this test succeeded silently and unconditionally,
when run on an out-of-tree curl build.

Also fix to exit gracefully if no libcurl manuals are found.

Fixing:
```
readline() on closed filehandle $m at ../../tests/test1222.pl line 153.
```

Cherry-picked from #17877
Closes #17892
This commit is contained in:
Viktor Szakats 2025-07-11 01:39:36 +02:00
parent 55509b045b
commit 202f0752ea
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 13 additions and 5 deletions

View file

@ -17,7 +17,7 @@ Verify deprecation statuses and versions
</name>
<command type="perl">
%SRCDIR/test1222.pl %SRCDIR/..
%SRCDIR/test1222.pl %SRCDIR/.. %PWD/..
</command>
</client>