##
-# Copyright (c) 2009 Apple Inc. All rights reserved.
+# Copyright (c) 2009-2013 Apple Inc. All rights reserved.
#
# @APPLE_LICENSE_HEADER_START@
#
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`
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