Index: tests/validator/nacl.scons |
diff --git a/tests/validator/nacl.scons b/tests/validator/nacl.scons |
index 25777cacf7535aac79936e1a55f94a82b32bc5bc..3112368a45016b6a54f44b9572189907ca49e027 100644 |
--- a/tests/validator/nacl.scons |
+++ b/tests/validator/nacl.scons |
@@ -5,6 +5,24 @@ |
Import('env') |
+# Some of the inline assembly constraints in this test aren't supported by |
+# the old version of GCC that the nacl-glibc toolchain uses, so we disable |
+# the test for that case. |
+if (env.Bit('build_x86') and env.AllowInlineAssembly() and |
+ not env.Bit('nacl_glibc')): |
+ rewrite_nontemporals_nexe = env.ComponentProgram( |
+ 'rewrite_nontemporals_test', ['rewrite_nontemporals.c'], |
+ EXTRA_LIBS=['${NONIRT_LIBS}']) |
+ |
+ node = env.CommandSelLdrTestNacl( |
+ 'rewrite_nontemporals_test.out', |
+ rewrite_nontemporals_nexe) |
+ |
+ env.AddNodeToTestSuite(node, |
+ ['small_tests', 'nonpexe_tests'], |
+ 'run_rewrite_nontemporals_test') |
+ |
+ |
# The following test is specific to the x86_64 sandbox, and is not portable. |
if env.Bit('build_x86_64') and env.AllowInlineAssembly(): |
lahf_sahf_nexe = env.ComponentProgram( |