OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2010 The Native Client Authors. All rights reserved. | 2 # Copyright 2010 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 | 6 |
7 Import('env') | 7 Import('env') |
8 | 8 |
9 env.ComponentProgram('write_to_rodata.nexe', ['write_to_rodata.c']) | 9 nexe = env.ComponentProgram('write_to_rodata', ['write_to_rodata.c']) |
10 | 10 |
11 # We check the output to ensure that the process doesn't die for an | 11 # We check the output to ensure that the process doesn't die for an |
12 # unexpected reason. | 12 # unexpected reason. |
13 node = env.CommandSelLdrTestNacl( | 13 node = env.CommandSelLdrTestNacl( |
14 'write_to_rodata.out', | 14 'write_to_rodata.out', |
15 command=[env.File('write_to_rodata.nexe')], | 15 nexe, |
16 exit_status='untrusted_segfault', | 16 exit_status='untrusted_segfault', |
17 stdout_golden=env.File('write_to_rodata.stdout')) | 17 stdout_golden=env.File('write_to_rodata.stdout')) |
18 env.AddNodeToTestSuite(node, ['small_tests'], 'run_write_to_rodata_test') | 18 env.AddNodeToTestSuite(node, ['small_tests'], 'run_write_to_rodata_test') |
OLD | NEW |