X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/39a8cd101b922f08058746122efff58c14b57605..a9a4db61c29ec8455dcb07f607391cd82e933936:/unit-tests/test-cases/dtrace-static-probes/Makefile diff --git a/unit-tests/test-cases/dtrace-static-probes/Makefile b/unit-tests/test-cases/dtrace-static-probes/Makefile index 3c40c6f..f800ae4 100644 --- a/unit-tests/test-cases/dtrace-static-probes/Makefile +++ b/unit-tests/test-cases/dtrace-static-probes/Makefile @@ -27,10 +27,16 @@ include ${TESTROOT}/include/common.makefile # Test that dtrace probes fire # +ifeq "$(OS_NAME)" "iPhoneOS" + SUDO = +else + SUDO = sudo +endif + all-check: all check check: - if [ `sudo dtrace -q -n 'Foo$$target:::count { printf("%u\n", arg0); } ' -c ./main | wc -w` == 5 ]; \ + if [ `${SUDO} /usr/sbin/dtrace -q -n 'Foo$$target:::count { printf("%u\n", arg0); } ' -c ./main | wc -w` == 5 ]; \ then \ echo "PASS dtrace-static-probes"; \ else \