Running tests in background

Felipe Gasper felipe at felipegasper.com
Mon Jun 7 18:50:01 CEST 2021


Hi Marc,

	Would you consider using SIGUSR1 instead of SIGINT in the AE test suite?

	We recently switched our test suite to run tests in a shell background. This caused AE’s test suite to fail on 02_signal.t, which we eventually realized was because the shell sets SIGINT to ignore, which Perl represents by saying that $SIG{INT} is 'IGNORE', which causes AnyEvent->signal() to be a no-op.

	Since the use of signals in those tests is specific to the application, it seems like SIGUSR1 would make more sense--and it would also allow the tests to run without modification when backgrounded.

	Thank you for your consideration!

cheers,
-Felipe Gasper


More information about the anyevent mailing list