X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/412ebb8e3cc35d457058c31310d89ef96b7c416d..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/restrict-environ/Makefile diff --git a/unit-tests/test-cases/restrict-environ/Makefile b/unit-tests/test-cases/restrict-environ/Makefile index 8aa6bea..0d2aa80 100644 --- a/unit-tests/test-cases/restrict-environ/Makefile +++ b/unit-tests/test-cases/restrict-environ/Makefile @@ -1,5 +1,5 @@ ## -# Copyright (c) 2009 Apple Inc. All rights reserved. +# Copyright (c) 2009-2013 Apple Inc. All rights reserved. # # @APPLE_LICENSE_HEADER_START@ # @@ -23,10 +23,14 @@ TESTROOT = ../.. include ${TESTROOT}/include/common.makefile +SHELL = bash # use bash shell so we can redirect just stderr + ifeq "$(OS_NAME)" "iPhoneOS" RUN_AS_USER = login -f -l mobile + RUN_AS_ROOT = else RUN_AS_USER = + RUN_AS_ROOT = sudo endif PWD = `pwd` @@ -34,7 +38,8 @@ PWD = `pwd` all-check: all check check: - ${RUN_AS_USER} $(PWD)/main-with-env + ${RUN_AS_USER} $(PWD)/main-with-env 2>/dev/null + ${RUN_AS_ROOT} $(PWD)/main-with-env 2>/dev/null all: main