|
From: <sv...@va...> - 2014-10-20 21:29:33
|
Author: florian
Date: Mon Oct 20 22:29:26 2014
New Revision: 14645
Log:
Fix BZ 339789. /bin/true does not exist on Darwin.
Patch by rhy...@gm....
Modified:
trunk/NEWS
trunk/none/tests/execve.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Mon Oct 20 22:29:26 2014
@@ -43,6 +43,7 @@
tronical and pushfpopf tests)
339721 assertion 'check_sibling == sibling' failed in readdwarf3.c ...
+339789 Fix none/tests/execve test on Mac OS X 10.9
339808 Fix none/tests/rlimit64_nofile test on Mac OS X 10.9
339853 arm64 times syscall unknown
339855 arm64 unhandled getsid/setsid syscalls
Modified: trunk/none/tests/execve.c
==============================================================================
--- trunk/none/tests/execve.c (original)
+++ trunk/none/tests/execve.c Mon Oct 20 22:29:26 2014
@@ -8,7 +8,11 @@
{
// This tests the case where argv and envp are NULL, which is easy to
// get wrong because it's an unusual case.
+# if !defined(VGO_darwin)
if (execve("/bin/true", NULL, NULL) < 0)
+# else
+ if (execve("/usr/bin/true", NULL, NULL) < 0)
+# endif
{
perror("execve");
exit(1);
|