Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Unified Diff: tests/syscalls/nacl.scons

Issue 7020011: disable timing tests on windows. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tests/nanosleep/nacl.scons ('K') | « tests/nanosleep/nacl.scons ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/syscalls/nacl.scons
===================================================================
--- tests/syscalls/nacl.scons (revision 5515)
+++ tests/syscalls/nacl.scons (working copy)
@@ -7,6 +7,10 @@
Import('env')
+time_test_is_broken_on_this_os=False
+if 'TRUSTED_ENV' in env and env['TRUSTED_ENV'].Bit('windows'):
+ time_test_is_broken_on_this_os=True
+
env.ComponentLibrary('syscall_test_framework', ['test.cc'])
env.ComponentProgram('syscalls.nexe',
@@ -122,6 +126,9 @@
['small_tests', 'sel_ldr_tests'],
'run_sysbrk_test')
+# These are timing tests, so we only run on real hardware
+is_on_vm = env.Bit('running_on_vm')
+
# additions to add syscall tests 40-42
env.ComponentProgram('timefuncs_test.nexe',
['timefuncs_test.cc'],
@@ -134,18 +141,17 @@
env.AddNodeToTestSuite(node,
['small_tests', 'sel_ldr_tests'],
'run_timefuncs_test',
- )
+ is_broken=is_on_vm or time_test_is_broken_on_this_os
+ )
raw_syscall_timefunc_objects = env.RawSyscallObjects(['timefuncs_test.cc'])
env.ComponentProgram('raw_timefuncs_test.nexe',
raw_syscall_timefunc_objects,
EXTRA_LIBS=['syscall_test_framework'])
-# This is a timing test, so we only run on real hardware
-is_broken = env.Bit('running_on_vm')
node = env.CommandSelLdrTestNacl('raw_timefuncs_test.out',
command=[env.File('raw_timefuncs_test.nexe')])
env.AddNodeToTestSuite(node,
['small_tests', 'sel_ldr_tests'],
'run_raw_timefuncs_test',
- is_broken=is_broken)
+ is_broken=is_on_vm or time_test_is_broken_on_this_os)
« tests/nanosleep/nacl.scons ('K') | « tests/nanosleep/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698