Er, actually make this test meaningful. It now aborts correctly if you try to

launch stage2 directly, rather than giving an obscure error about the tool
later on.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2527
This commit is contained in:
Nicholas Nethercote 2004-07-26 11:11:56 +00:00
parent 1c5c73edea
commit dbc191490a

View File

@ -473,8 +473,8 @@ static void scan_auxv(void)
break;
}
if ( ! (1|2) ) {
fprintf(stderr, "stage2 must be launched by stage1\n");
if ( found != (1|2) ) {
fprintf(stderr, "valgrind: stage2 must be launched by stage1\n");
exit(127);
}
}