From: Nicholas Nethercote Date: Mon, 26 Jul 2004 11:11:56 +0000 (+0000) Subject: Er, actually make this test meaningful. It now aborts correctly if you try to X-Git-Tag: svn/VALGRIND_2_2_0~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dbc191490af58351c3cc7c03abc8f03b23af8b95;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c index a8a09b5cf2..9b5bd8177e 100644 --- a/coregrind/vg_main.c +++ b/coregrind/vg_main.c @@ -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); } }