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
I think DrMemory should return client program exit code if
a) it is nonzero
b) there are no reports or presence of any reports doesn't imply nonzero
exitcode (e.g. analog of Valgrind's --error-exitcode=X)
For example:
#include <stdio.h>
#include <stdlib.h>
int main() {
printf("I'll exit now...\n");
exit(1);
printf("We shouldn't get here\n");
return 0;
}
From [email protected] on March 22, 2010 12:21:28
I think DrMemory should return client program exit code if
a) it is nonzero
b) there are no reports or presence of any reports doesn't imply nonzero
exitcode (e.g. analog of Valgrind's --error-exitcode=X)
For example:
#include <stdio.h>
#include <stdlib.h>
int main() {
printf("I'll exit now...\n");
exit(1);
printf("We shouldn't get here\n");
return 0;
}
->>>
$ cl test.cpp
...
$ test.exe
I'll throw an exception now...
$ echo %ERRORLEVEL%
1
$ drmemory.exe -quiet -- test.exe
I'll throw an exception now...
$ echo %ERRORLEVEL%
0
Also, DrMemory should return nonzero exit code if it fails (e.g. fails on
an assertion)
Original issue: http://code.google.com/p/dynamorio/issues/detail?id=276
The text was updated successfully, but these errors were encountered: