Index: tests/multiple_sandboxes/nacl.scons |
diff --git a/tests/multiple_sandboxes/nacl.scons b/tests/multiple_sandboxes/nacl.scons |
index 0608158eb07101977587a43a641b83cf52bb51b6..a9246a2c4f9a3dd3851b8194ef256da516997e4c 100644 |
--- a/tests/multiple_sandboxes/nacl.scons |
+++ b/tests/multiple_sandboxes/nacl.scons |
@@ -46,11 +46,19 @@ test_prog = env.ComponentProgram( |
'multidomain_test_guest', ['multidomain_test_guest.c'], |
EXTRA_LIBS=['imc_syscalls', '${NONIRT_LIBS}']) |
+# If we are generating a pexe, translate it first |
+extra_deps = [] |
+if env.Bit('pnacl_stop_with_pexe'): |
+ nexe_name, pexe_node = env.GetTranslatedNexe(test_prog) |
+ test_prog = nexe_name |
+ extra_deps = [pexe_node] |
+ |
node = env.CommandTest('multidomain_test.out', [runner, test_prog], |
# Increase verbosity to get more information in |
# the event of a crash. |
osenv='NACLVERBOSITY=4', |
- stdout_golden=env.File('multidomain_test.stdout')) |
+ stdout_golden=env.File('multidomain_test.stdout'), |
+ extra_deps=extra_deps) |
# This test does not work everywhere: |
# * NaCl's ARM sandbox does not support multiple sandboxes per |