diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2011-08-12 15:32:37 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2011-08-15 07:17:05 -0700 |
commit | 0637e22d055584e414de2e834e006368e6c0c022 (patch) | |
tree | 4d3f0d181ba56edfd9b71740571333b69271e87a | |
parent | 051c1f89c834ff1f106cdfdef074b5904e0d8e6c (diff) |
tet: Ignore SIGWINCH (terminal window size change)
This signal is asserted when the controlling terminal changes size,
for example if you're running xts from an xterm and you resize the
window. This causes tests to fail:
70||"VSW5TESTSUITE CASE FillPoly 3"
10|34 /Xproto/pFillPoly 15:28:48|TC Start, scenario ref 71-0
15|34 3.3-lite 3|TCM Start
510|34|system 0: Abandoning testset: caught unexpected signal 28 (unknown signal)
80|34 1 15:28:49|TC End, scenario ref 71-0
These signals can't affect the test environment, so just ignore them
all the time.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
-rw-r--r-- | src/tet3/tcm/dtcm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tet3/tcm/dtcm.c b/src/tet3/tcm/dtcm.c index ecfc0a3d..3d56e8d8 100644 --- a/src/tet3/tcm/dtcm.c +++ b/src/tet3/tcm/dtcm.c @@ -720,6 +720,14 @@ void (*func)(); { sig_init("TET_SIG_IGN", &sig_ign); sig_init("TET_SIG_LEAVE", &sig_leave); +#if defined(SIGWINCH) + /* + * Ignore terminal window size changes, which don't affect the + * test environment. + */ + sigaddset(&sig_ign, SIGWINCH); +#endif + init_done = 1; } |