| OLD | NEW |
| 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 Loading... |
| 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'))) | |
| OLD | NEW |