Skip to content

Conversation

rioderelfte
Copy link
Contributor

Some bugs only happen when observers are registered. This change makes it possible to register observers from the zend_test extension in all tests. The observers don’t really do anything, but just by being registered some bugs in the observer implementation can be caught.

The full test suite can be run with observers by executing TEST_PHP_ARGS='--with-test-observers' make test.

Right now some tests fail because of the issue fixed in #9849. I actually found that bug by running all tests with this new flag.

Some bugs only happen when observers are registered. This change makes it possible to register observers from the zend_test extension in all tests. The observers don’t really do anything, but just by being registered some bugs in the observer implementation can be caught.

The full test suite can be run with observers by executing `TEST_PHP_ARGS='--with-test-observers' make test`.
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

👍 If we add this option it likely makes sense to run it in any of the nightly tests. (ASAN might be a good option)

@rioderelfte
Copy link
Contributor Author

Added in #13869

@rioderelfte rioderelfte closed this Apr 8, 2024
@rioderelfte rioderelfte deleted the run-tests-with-observers branch April 8, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants