[PATCH] D32556: [asan] Allow propagating env variables when testing on iOS Simulator
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 26 13:51:32 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL301462: [asan] Allow propagating env variables when testing on iOS Simulator (authored by kuba.brecka).
Changed prior to commit:
https://reviews.llvm.org/D32556?vs=96807&id=96816#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32556
Files:
compiler-rt/trunk/test/asan/TestCases/Darwin/scribble.cc
compiler-rt/trunk/test/lit.common.cfg
Index: compiler-rt/trunk/test/asan/TestCases/Darwin/scribble.cc
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/Darwin/scribble.cc
+++ compiler-rt/trunk/test/asan/TestCases/Darwin/scribble.cc
@@ -1,6 +1,6 @@
// RUN: %clang_asan -O2 %s -o %t
// RUN: %run %t 2>&1 | FileCheck --check-prefix=CHECK-NOSCRIBBLE %s
-// RUN: env MallocScribble=1 MallocPreScribble=1 %run %t 2>&1 | FileCheck --check-prefix=CHECK-SCRIBBLE %s
+// RUN: %env MallocScribble=1 MallocPreScribble=1 %run %t 2>&1 | FileCheck --check-prefix=CHECK-SCRIBBLE %s
// RUN: %env_asan_opts=max_free_fill_size=4096 %run %t 2>&1 | FileCheck --check-prefix=CHECK-SCRIBBLE %s
#include <stdint.h>
Index: compiler-rt/trunk/test/lit.common.cfg
===================================================================
--- compiler-rt/trunk/test/lit.common.cfg
+++ compiler-rt/trunk/test/lit.common.cfg
@@ -96,14 +96,18 @@
# Allow tests to be executed on a simulator or remotely.
if config.emulator:
config.substitutions.append( ('%run', config.emulator) )
+ config.substitutions.append( ('%env ', "env ") )
elif config.ios:
device_id_env = "SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER" if config.iossim else "SANITIZER_IOS_TEST_DEVICE_IDENTIFIER"
if device_id_env in os.environ: config.environment[device_id_env] = os.environ[device_id_env]
ios_commands_dir = os.path.join(config.compiler_rt_src_root, "test", "sanitizer_common", "ios_commands")
run_wrapper = os.path.join(ios_commands_dir, "iossim_run.py" if config.iossim else "ios_run.py")
config.substitutions.append(('%run', run_wrapper))
+ env_wrapper = os.path.join(ios_commands_dir, "iossim_env.py" if config.iossim else "ios_env.py")
+ config.substitutions.append(('%env ', env_wrapper + " "))
else:
config.substitutions.append( ('%run', "") )
+ config.substitutions.append( ('%env ', "env ") )
# Define CHECK-%os to check for OS-dependent output.
config.substitutions.append( ('CHECK-%os', ("CHECK-" + config.host_os)))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32556.96816.patch
Type: text/x-patch
Size: 2023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170426/c9bdd39c/attachment.bin>
More information about the llvm-commits
mailing list