From: Florian Krohm Date: Mon, 20 Oct 2014 21:29:26 +0000 (+0000) Subject: Fix BZ 339789. /bin/true does not exist on Darwin. X-Git-Tag: svn/VALGRIND_3_11_0~903 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc3f09be77718e76acecd46204b7d12376df4b7f;p=thirdparty%2Fvalgrind.git Fix BZ 339789. /bin/true does not exist on Darwin. Patch by rhyskidd@gmail.com. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14645 --- diff --git a/NEWS b/NEWS index b9edeed590..c99ed3092b 100644 --- a/NEWS +++ b/NEWS @@ -43,6 +43,7 @@ where XXXXXX is the bug number as listed below. 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 diff --git a/none/tests/execve.c b/none/tests/execve.c index aba252967d..e6a30444ad 100644 --- a/none/tests/execve.c +++ b/none/tests/execve.c @@ -8,7 +8,11 @@ int main(int argc, char **argv) { // 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);