Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 Import('env') | 6 Import('env') |
| 7 | 7 |
| 8 if env.Bit('nonsfi_nacl'): | |
|
Mark Seaborn
2015/06/26 18:32:00
Can you put this test in tests/nonsfi/, please? I
Luis Héctor Chávez
2015/07/06 23:45:00
Done.
| |
| 9 # Tests sending and receiving userspace signals. | |
| 10 nexe = env.ComponentProgram( | |
| 11 'user_signal_test', | |
| 12 'user_signal_test.cc', | |
|
Mark Seaborn
2015/06/26 18:32:00
Can you add "async" to the test names?
Luis Héctor Chávez
2015/07/06 23:45:00
Done.
| |
| 13 EXTRA_LIBS=['${NONIRT_LIBS}', | |
| 14 '${EXCEPTION_LIBS}']) | |
| 15 node = env.CommandSelLdrTestNacl( | |
| 16 'user_signal_test.out', | |
| 17 nexe, | |
| 18 sel_ldr_flags=['-S'], | |
| 19 exit_status='0', | |
| 20 using_nacl_signal_handler=True) | |
| 21 env.AddNodeToTestSuite(node, ['small_tests'], 'run_user_signal_test') | |
| 22 | |
| 8 trusted_env = env.get('TRUSTED_ENV') | 23 trusted_env = env.get('TRUSTED_ENV') |
| 9 if trusted_env is None: | 24 if trusted_env is None: |
| 10 Return() | 25 Return() |
| 11 | 26 |
| 12 crash_test_nexe = env.ComponentProgram( | 27 crash_test_nexe = env.ComponentProgram( |
| 13 env.ProgramNameForNmf('crash_test'), | 28 env.ProgramNameForNmf('crash_test'), |
| 14 'crash_test.c', EXTRA_LIBS=['${NONIRT_LIBS}']) | 29 'crash_test.c', EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 15 | 30 |
| 16 crash_in_syscall_nexe = env.ComponentProgram( | 31 crash_in_syscall_nexe = env.ComponentProgram( |
| 17 env.ProgramNameForNmf('crash_in_syscall'), | 32 env.ProgramNameForNmf('crash_in_syscall'), |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 | 66 |
| 52 # For both Valgrind and Coverage instrumented tests, we ignore signal handler | 67 # For both Valgrind and Coverage instrumented tests, we ignore signal handler |
| 53 # tests which can produce strange or flaky results. | 68 # tests which can produce strange or flaky results. |
| 54 # Bug=http://code.google.com/p/nativeclient/issues/detail?id=1983 | 69 # Bug=http://code.google.com/p/nativeclient/issues/detail?id=1983 |
| 55 # | 70 # |
| 56 is_broken = (env.IsRunningUnderValgrind() or | 71 is_broken = (env.IsRunningUnderValgrind() or |
| 57 trusted_env.Bit('coverage_enabled') or | 72 trusted_env.Bit('coverage_enabled') or |
| 58 env.Bit('host_windows')) | 73 env.Bit('host_windows')) |
| 59 env.AddNodeToTestSuite(nodes, ['small_tests'], 'run_signal_handler_test', | 74 env.AddNodeToTestSuite(nodes, ['small_tests'], 'run_signal_handler_test', |
| 60 is_broken=is_broken) | 75 is_broken=is_broken) |
| OLD | NEW |