]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/dtrace-static-probes/Makefile
dyld-360.14.tar.gz
[apple/dyld.git] / unit-tests / test-cases / dtrace-static-probes / Makefile
index 3c40c6f45a2a22db4730e595a12fa3c7bdc646c5..f800ae4a6df3386e926226ad6bcc83c3e0c9ef42 100644 (file)
@@ -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 \