Index: tests/exception_test/nacl.scons |
diff --git a/tests/exception_test/nacl.scons b/tests/exception_test/nacl.scons |
index 00f0bd67366538f49e3f1ea1fdaaedab10d98bbf..17b301c086986dbdda12497ffe872ff0dcc6f29d 100644 |
--- a/tests/exception_test/nacl.scons |
+++ b/tests/exception_test/nacl.scons |
@@ -8,13 +8,18 @@ Import('env') |
if not env.AllowInlineAssembly(): |
Return() |
+env.Append(CPPDEFINES=[['NONSFI_MODE', |
+ str(int(env.Bit('pnacl_unsandboxed') or |
+ env.Bit('nonsfi_nacl')))]]) |
+ |
test_args = {'sel_ldr_flags': ['-e', '-E', 'OUTSIDE_BROWSER=1'], |
'declares_exit_status': True} |
if env.Bit('target_arm') and env.UsingEmulator(): |
test_args['sel_ldr_flags'].extend(['-E', 'UNDER_QEMU_ARM=1']) |
helper_files = [] |
-if env.Bit('target_x86'): |
+if env.Bit('target_x86') and not env.Bit('nonsfi_nacl'): |
+ # TODO(uekawa): enable this for NonSFI NaCl. |
helper_files.append('direction_flag_x86.S') |
exception_test = env.ComponentProgram( |
env.ProgramNameForNmf('exception_test'), |