#48102 [NEW]: run-tests.php and symlinked tests
| From: | fa@php.net | Date: | Tue, 28 Apr 2009 21:45:09 +0000 |
| Subject: | #48102 [NEW]: run-tests.php and symlinked tests | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-136483@lists.php.net to get a copy of this message | ||
From: fa@php.net
Operating system: Linux
PHP version: 6CVS-2009-04-28 (CVS)
PHP Bug Type: Feature/Change Request
Bug description: run-tests.php and symlinked tests
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 bug report at http://bugs.php.net/?id=48102&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48102&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48102&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48102&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48102&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48102&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48102&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48102&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48102&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48102&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48102&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48102&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48102&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48102&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48102&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48102&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48102&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48102&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48102&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48102&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48102&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48102&r=mysqlcfg