You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kyua fails hard when it receives output on stderr or a non-zero exit code when listing test-cases (-l).
This may happen in environments in which sanitizers are added to the code under test and they trigger non-zero exit code e.g. due to memory leaks and emit traces on stderr.
Ideally kyua should be agnostic to such condititions. I propose two alternate ways to handle such cases:
Treat the -l run as a pre-test with the condition stderr empty, 0 exit-code. In case of condition failure, emit the usual diagnostics to the log (stderr output, exit code).
Ignore issues during the -l run. Record the stderr output and prepend it to the stderr output of the actual test, ignore the exit code, so the actual test can run.
Both approaches have their merits and either one s better than the current behaviour of bailing without any diagnostic output.
The problem is coming from a discussion around running atf with sanitizers: freebsd/atf#78
The text was updated successfully, but these errors were encountered:
I don't honestly think this should be worked around, because it would make scraping testcase data more difficult and error prone. The ASAN/UBSAN related issues need to be resolved.
kyua
fails hard when it receives output on stderr or a non-zero exit code when listing test-cases (-l
).This may happen in environments in which sanitizers are added to the code under test and they trigger non-zero exit code e.g. due to memory leaks and emit traces on stderr.
Ideally
kyua
should be agnostic to such condititions. I propose two alternate ways to handle such cases:-l
run as a pre-test with the condition stderr empty, 0 exit-code. In case of condition failure, emit the usual diagnostics to the log (stderr output, exit code).-l
run. Record the stderr output and prepend it to the stderr output of the actual test, ignore the exit code, so the actual test can run.Both approaches have their merits and either one s better than the current behaviour of bailing without any diagnostic output.
The problem is coming from a discussion around running atf with sanitizers: freebsd/atf#78
The text was updated successfully, but these errors were encountered: