Req #79913 [PATCH]: use exec in sh files generated by run-test.php
| From: | santi@mola.io | Date: | Wed, 29 Jul 2020 22:28:15 +0000 |
| Subject: | Req #79913 [PATCH]: use exec in sh files generated by run-test.php | ||
| References: | 1 | Groups: | php.bugs php.qa |
| Request: | Send a blank email to php-bugs+get-228284@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79913&edit=1
ID: 79913
Patch added by: santi@mola.io
Reported by: santi at mola dot io
Summary: use exec in sh files generated by run-test.php
Status: Open
Type: Feature/Change Request
Package: Testing related
Operating System: Linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Fix #79913: add exec to run-tests.php's sh files
On GitHub: https://github.com/php/php-src/pull/5909
Patch: https://github.com/php/php-src/pull/5909.patch
Previous Comments:
------------------------------------------------------------------------
[2020-07-29 22:25:34] santi at mola dot io
Description:
------------
I often use gdb to debug a failed phpt tests, usually by editing the generated .sh file and
prepending "gdb --args" to the command. It is also possible to run gdb directly on the .sh
file (setting follow-fork-mode child) but it is less convenient, and also problematic if the test
itself forks.
This can be solved by just running the test command with "exec". AFAIK this should be
inocuous for regular test running, but quite convenient when running gdb.
Test script:
---------------
gdb --args bash tests/failing_tests.phpt
Expected result:
----------------
gdb running normally
Actual result:
--------------
gdb debugging the parent bash process instead (by default)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79913&edit=1