]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/fallback-with-suid/Makefile
dyld-733.6.tar.gz
[apple/dyld.git] / unit-tests / test-cases / fallback-with-suid / Makefile
index 6fd0158a349c2e787ef0ecf16e6bc0abd241f361..dccb78c566957fc40f9e7217408203aa2d4205e6 100644 (file)
@@ -1,5 +1,5 @@
 ##
-# Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
+# Copyright (c) 2006-2009 Apple Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
 # 
 # @APPLE_LICENSE_HEADER_END@
 ##
-TESTROOT = ../..
+PWD = $(shell pwd)
+TESTROOT = $(PWD)/../..
 include ${TESTROOT}/include/common.makefile
 
-run: all
-       ${TESTROOT}/bin/exit-non-zero-pass.pl "fallback-with-suid" "fallback-with-suid" ./main-suid
+ifeq "$(OS_NAME)" "iPhoneOS"
+       RUN_AS_USER = login -f -l mobile
+else
+       RUN_AS_USER = 
+endif
+
+all-check: all check
+
+check:
+       ${RUN_AS_USER} ${PASS_IFF_FAILURE} "fallback-with-suid" "fallback-with-suid" $(PWD)/main-suid
        
 all: main-suid