| 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 | 8 |
| 9 if env.Bit('host_windows'): | 9 if env.Bit('host_windows'): |
| 10 # This test will hang when the SocketAddress implementation uses | 10 # This test will hang when the SocketAddress implementation uses |
| 11 # string tokens instead of FDs. | 11 # string tokens instead of FDs. |
| 12 test_args = ['DISABLE_IMC_ACCEPT_EOF_TEST=1'] | 12 test_args = ['DISABLE_IMC_ACCEPT_EOF_TEST=1'] |
| 13 else: | 13 else: |
| 14 test_args = [] | 14 test_args = [] |
| 15 | 15 |
| 16 env.ComponentProgram('socket_transfer_test.nexe', 'socket_transfer_test.c', | 16 nexe = env.ComponentProgram('socket_transfer_test', 'socket_transfer_test.c', |
| 17 EXTRA_LIBS=['imc_syscalls', 'pthread']) | 17 EXTRA_LIBS=['imc_syscalls', 'pthread']) |
| 18 | 18 |
| 19 node = env.CommandSelLdrTestNacl( | 19 node = env.CommandSelLdrTestNacl( |
| 20 'socket_transfer_test.out', | 20 'socket_transfer_test.out', |
| 21 command=[env.File('socket_transfer_test.nexe')] + test_args) | 21 nexe, |
| 22 args=test_args) |
| 22 env.AddNodeToTestSuite(node, ['small_tests'], 'run_socket_transfer_test') | 23 env.AddNodeToTestSuite(node, ['small_tests'], 'run_socket_transfer_test') |
| OLD | NEW |