blob: e1c937ea6ddbb097c0f856ffab0be91b74e476f6 [file] [log] [blame]
# -*- python -*-
# Copyright 2008 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')
# Currently, this test only makes sense for non-Windows, since SIGPIPE
# does not make sense in Windows.
if env.Bit('windows'):
Return()
# Don't run this test under valgrind -- it will fail with a different exit code.
if env.IsRunningUnderValgrind():
Return();
sigpipe_tool_test_exe = env.ComponentProgram('sigpipe_tool_test',
['sigpipe_tool_test.c'])
node = env.CommandTest(
'sigpipe_tool_test.out',
[sigpipe_tool_test_exe],
exit_status='sigpipe')
env.AddNodeToTestSuite(node, ['small_tests'], 'run_tool_tests')