| 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 not env.Bit('asan'): | 8 if not env.Bit('asan'): |
| 9 Return() | 9 Return() |
| 10 | 10 |
| 11 asan_test_exe = env.ComponentProgram('asan_test', 'asan_test.c') | 11 asan_test_exe = env.ComponentProgram('asan_test', 'asan_test.c') |
| 12 | 12 |
| 13 if env.Bit('host_mac'): | |
| 14 expected_exit_status = 'trusted_sigabrt' | |
| 15 else: | |
| 16 expected_exit_status = '1' | |
| 17 | |
| 18 | |
| 19 node = env.CommandTest( | 13 node = env.CommandTest( |
| 20 'asan_test.out', | 14 'asan_test.out', |
| 21 command=[asan_test_exe], | 15 command=[asan_test_exe], |
| 22 exit_status=expected_exit_status, | 16 exit_status='1', |
| 23 ) | 17 ) |
| 24 env.AddNodeToTestSuite(node, ['small_tests'], 'run_asan_test') | 18 env.AddNodeToTestSuite(node, ['small_tests'], 'run_asan_test') |
| OLD | NEW |