|
From: <sv...@va...> - 2009-01-19 22:52:53
|
Author: njn
Date: 2009-01-19 21:33:25 +0000 (Mon, 19 Jan 2009)
New Revision: 8984
Log:
Add a comment explaining this test.
Modified:
trunk/none/tests/execve.c
Modified: trunk/none/tests/execve.c
===================================================================
--- trunk/none/tests/execve.c 2009-01-19 19:58:32 UTC (rev 8983)
+++ trunk/none/tests/execve.c 2009-01-19 21:33:25 UTC (rev 8984)
@@ -6,6 +6,8 @@
{
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");
|