Skip to content

Conversation

@arnaud-lb
Copy link
Member

When a test has an --STDIN-- or --PHPDBG-- section, save the section's content into a file, like we do for the other sections.

This makes it bit easier to reproduce these tests outside of run-tests.php.

This doesn't update the .sh file to pass the file as stdin to the program, yet.

When using gdb, we can pass the file as stdin like this:

gdb --args php
(gdb) r test.php < test.stdin

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSTM

@arnaud-lb
Copy link
Member Author

@Ayesh I do it already :)

@Ayesh
Copy link
Member

Ayesh commented Apr 12, 2025

My bad, sorry. I deleted my comment to reduce noise.

About the change, it's straight forward and makes sense. I also had trouble re-running some failing tests, and having stdin ready to reuse would have saved a lot of time!

@arnaud-lb arnaud-lb merged commit b24addd into php:master Apr 15, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants