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

Side by Side Diff: tests/thread_suspension/nacl.scons

Issue 10392005: Thread suspension: Implement for Linux (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Comment about docs Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright 2012 The Native Client Authors. All rights reserved. 2 # Copyright 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can 3 # Use of this source code is governed by a BSD-style license that can
4 # be found in the LICENSE file. 4 # be found in the LICENSE file.
5 5
6 Import('env') 6 Import('env')
7 7
8 # suspend_test_guest.nexe fails to link when Valgrind is enabled 8 # suspend_test_guest.nexe fails to link when Valgrind is enabled
9 # because of a problem with the TLS ".tbss" section. 9 # because of a problem with the TLS ".tbss" section.
10 if env.IsRunningUnderValgrind(): 10 if env.IsRunningUnderValgrind():
(...skipping 11 matching lines...) Expand all
22 22
23 test_host = trusted_env.ComponentProgram( 23 test_host = trusted_env.ComponentProgram(
24 'suspend_test_host', ['suspend_test_host.c'], 24 'suspend_test_host', ['suspend_test_host.c'],
25 EXTRA_LIBS=['sel', 'sel_debug_dummy']) 25 EXTRA_LIBS=['sel', 'sel_debug_dummy'])
26 26
27 test_command = [test_host, test_guest] 27 test_command = [test_host, test_guest]
28 bootstrap, _ = env.GetBootstrap() 28 bootstrap, _ = env.GetBootstrap()
29 if bootstrap is not None: 29 if bootstrap is not None:
30 test_command = [bootstrap] + test_command 30 test_command = [bootstrap] + test_command
31 31
32 # TODO(mseaborn): Implement thread suspension for Mac OS X too.
33 is_broken = (not env.Bit('nacl_static_link') or
34 env.Bit('host_mac'))
35
32 node = env.CommandTest('thread_suspension_test.out', test_command) 36 node = env.CommandTest('thread_suspension_test.out', test_command)
33 # Thread suspension is currently on implemented for Windows.
34 # TODO(mseaborn): Implement thread suspension for all other platforms.
35 env.AddNodeToTestSuite(node, ['small_tests'], 37 env.AddNodeToTestSuite(node, ['small_tests'],
36 'run_thread_suspension_test', 38 'run_thread_suspension_test', is_broken=is_broken)
37 is_broken=(not env.Bit('nacl_static_link') or
38 not env.Bit('host_windows')))
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/win/thread_suspension.c ('k') | tests/thread_suspension/suspend_test_host.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698