| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 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 # TODO(mseaborn): remove when glibc has syscall stubs for dup and dup2 | 8 # TODO(mseaborn): remove when glibc has syscall stubs for dup and dup2 |
| 9 if env.Bit('nacl_glibc'): | 9 if env.Bit('nacl_glibc'): |
| 10 Return() | 10 Return() |
| 11 | 11 |
| 12 env.ComponentProgram('dup_test.nexe', 'dup_test.c') | 12 nexe = env.ComponentProgram('dup_test', 'dup_test.c') |
| 13 | 13 |
| 14 node = env.CommandSelLdrTestNacl( | 14 node = env.CommandSelLdrTestNacl( |
| 15 'dup_test.out', | 15 'dup_test.out', |
| 16 command=[env.File('dup_test.nexe')], | 16 nexe, |
| 17 stdin=env.File('dup_test.stdin'), | 17 stdin=env.File('dup_test.stdin'), |
| 18 stdout_golden=env.File('dup_test.stdout'), | 18 stdout_golden=env.File('dup_test.stdout'), |
| 19 ) | 19 ) |
| 20 env.AddNodeToTestSuite(node, | 20 env.AddNodeToTestSuite(node, |
| 21 ['small_tests', 'sel_ldr_tests'], | 21 ['small_tests', 'sel_ldr_tests'], |
| 22 'run_dup_test') | 22 'run_dup_test') |
| OLD | NEW |