Thhe html documentation
http://www.valgrind.org/docs/manual/index.html
explains what --error-exitcode=9
does in case valgrind notes an error.


--error-exitcode=<number>
Specifies an alternative exit code to return if Valgrind reported any
errors in the run. When set to the default value (zero), the return
value from Valgrind will always be the return value of the process being
simulated. When set to a nonzero value, that value is returned instead,
if Valgrind detects any errors. This is useful for using Valgrind as
part of an automated test suite, since it makes it easy to detect test
cases for which Valgrind has reported errors, just by inspecting return
codes.


It says nothing explicitly about what exit code is returned
if valgrind does not find an error. AFAICT.

In my tests, it appears that when valgrind
finds no problem valgrind returns the exit code
of the application under test if --error-exitcode is set non-zero.
I suggest that the web page should say that clearly.

DavidA


_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to