svn commit: trunk/uClibc/test/stdlib

carmelo at uclibc.org carmelo at uclibc.org
Tue May 13 14:32:39 UTC 2008


Author: carmelo
Date: 2008-05-13 07:32:39 -0700 (Tue, 13 May 2008)
New Revision: 21978

Log:
Do not check retbuf if realpath returns NULL

Modified:
   trunk/uClibc/test/stdlib/test-canon.c


Changeset:
Modified: trunk/uClibc/test/stdlib/test-canon.c
===================================================================
--- trunk/uClibc/test/stdlib/test-canon.c	2008-05-13 02:43:27 UTC (rev 21977)
+++ trunk/uClibc/test/stdlib/test-canon.c	2008-05-13 14:32:39 UTC (rev 21978)
@@ -188,8 +188,7 @@
 	  continue;
 	}
 
-      if ((tests[i].retval || tests[i].retbuf)
-       && !check_path (buf, tests[i].retval ? tests[i].retval : tests[i].retbuf))
+      if (result && !check_path (buf, tests[i].retval ? tests[i].retval : tests[i].retbuf))
 	{
 	  printf ("%s: flunked test %d (expected resolved `%s', got `%s')\n",
 		  argv[0], i, tests[i].retval ? tests[i].retval : tests[i].retbuf,




More information about the uClibc-cvs mailing list