]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/dlopen-error/Makefile
dyld-195.5.tar.gz
[apple/dyld.git] / unit-tests / test-cases / dlopen-error / Makefile
index 797e0c4a95591bd0196ab2af8f3acbe70c28a959..6515da42625ceaa3447d71cb4ddfa2a17f6d1be7 100644 (file)
@@ -1,5 +1,5 @@
 ##
-# Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
+# Copyright (c) 2008-2009 Apple Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
+ifeq "$(OS_NAME)" "iPhoneOS"
+       RUN_AS_USER = login -f -l mobile
+else
+       RUN_AS_USER = 
+endif
+
 all-check: all check
 
 check:
-       ./main
+       chmod -r libnoread.dylib
+       ${RUN_AS_USER} ./main
 
 all:  
        ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c
        ${CC} ${CCFLAGS} foo.c -dynamiclib -o libnoread.dylib
-       chmod -r libnoread.dylib
 
 clean:
        ${RM} ${RMFLAGS} *~ main libnoread.dylib