blob: 336345395324c0ae19692a73a022ba09dfbe607e [file] [log] [blame]
# -*- python -*-
# Copyright 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
# TODO(mseaborn): remove when glibc has syscall stubs for dup and dup2
if env.Bit('nacl_glibc'):
Return()
nexe = env.ComponentProgram('dup_test', 'dup_test.c',
EXTRA_LIBS=['${NONIRT_LIBS}'])
node = env.CommandSelLdrTestNacl(
'dup_test.out',
nexe,
stdin=env.File('dup_test.stdin'),
stdout_golden=env.File('dup_test.stdout'),
)
env.AddNodeToTestSuite(node,
['small_tests', 'sel_ldr_tests'],
'run_dup_test')