Edit report at https://bugs.php.net/bug.php?id=48102&edit=1
ID: 48102 Updated by: fel...@php.net Reported by: f...@php.net Summary: run-tests.php and symlinked tests -Status: Open +Status: Not a bug Type: Feature/Change Request Package: Testing related Operating System: Linux PHP Version: 6CVS-2009-04-28 (CVS) Block user comment: N Private report: N New Comment: Not a problema anymore. Previous Comments: ------------------------------------------------------------------------ [2009-04-28 21:45:08] f...@php.net Description: ------------ I was just trying out some tests written for 5.3 with HEAD, when I noticed the following: $ make test TESTS=ext/whatever Warning: fopen(): Filename cannot be empty in /root/src/php6/run-tests.php on line 1164 ERROR: Cannot open test file: make: [test] Error 1 (ignored) That means if there's a symlink with no endpoint, the whole testsuite can't run. It works fine if the symlinked file is just an empty (existing) file: BORK cannot read test [/tmp/foo] Yes, having tests only symlinked inside the source dir might be weird, so I filed this as feature request and not bug Reproduce code: --------------- $ touch /tmp/foo $ ln -s /tmp/foo /path/to/php-src/ext/whatever/tests/foo.phpt $ rm /tmp/foo $ make test TESTS=ext/whatever Expected result: ---------------- $ make test TESTS=ext/whatever [...] BORK symlink endpoint /tmp/foo doesn't exist Actual result: -------------- $ make test TESTS=ext/whatever Warning: fopen(): Filename cannot be empty in /root/src/php6/run-tests.php on line 1164 ERROR: Cannot open test file: make: [test] Error 1 (ignored) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=48102&edit=1