From: Nicholas Nethercote Date: Mon, 19 Jan 2009 21:33:25 +0000 (+0000) Subject: Add a comment explaining this test. X-Git-Tag: svn/VALGRIND_3_5_0~1085 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2047484bc5a42b2b41a5decdcc1c1bc7b9a0d70c;p=thirdparty%2Fvalgrind.git Add a comment explaining this test. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8984 --- diff --git a/none/tests/execve.c b/none/tests/execve.c index 5f97666956..842df78b52 100644 --- a/none/tests/execve.c +++ b/none/tests/execve.c @@ -6,6 +6,8 @@ int main(int argc, char **argv) { if (argc == 1) { + // This tests the case where argv and envp are NULL, which is easy to + // get wrong because it's an unusual case. if (execve(argv[0], NULL, NULL) < 0) { perror("execve");