| 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 Import('env') | 6 Import('env') |
| 7 | 7 |
| 8 if not env.Bit('nacl_glibc'): | 8 if not env.Bit('nacl_glibc'): |
| 9 Return() | 9 Return() |
| 10 | 10 |
| 11 env.ComponentProgram('dlopen_test.nexe', 'dlopen_test.c', EXTRA_LIBS=['dl']) | 11 nexe = env.ComponentProgram('dlopen_test', 'dlopen_test.c', EXTRA_LIBS=['dl']) |
| 12 | 12 |
| 13 dlopen_test = env.CommandSelLdrTestNacl( | 13 dlopen_test = env.CommandSelLdrTestNacl('dlopen_test.out', nexe) |
| 14 'dlopen_test.out', | |
| 15 command=[env.File('dlopen_test.nexe')]) | |
| 16 | 14 |
| 17 # This particular test does not work with static linking, although | 15 # This particular test does not work with static linking, although |
| 18 # dlopen() can work with a statically-linked main executable in | 16 # dlopen() can work with a statically-linked main executable in |
| 19 # general. | 17 # general. |
| 20 if not env.Bit('nacl_static_link'): | 18 if not env.Bit('nacl_static_link'): |
| 21 env.AddNodeToTestSuite(dlopen_test, ['small_tests'], 'run_dlopen_test') | 19 env.AddNodeToTestSuite(dlopen_test, ['small_tests'], 'run_dlopen_test') |
| OLD | NEW |