z/OS: signal(SIGPIPE, SIG_IGN) for tests

Updated:
   tests/testutil.hpp: Add signal(SIGPIPE, SIG_IGN) to
        setup_test_environment(), on z/OS (__MVS__)
This commit is contained in:
Ewen McNeill 2014-07-23 13:39:45 +12:00
parent f35d0b6f8d
commit c06ab77c3b

View File

@ -262,6 +262,11 @@ void setup_test_environment()
_CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
# endif
#endif
#if defined __MVS__
// z/OS UNIX System Services: Ignore SIGPIPE during test runs, as a
// workaround for no SO_NOGSIGPIPE socket option.
signal(SIGPIPE, SIG_IGN);
#endif
}
// Provide portable millisecond sleep