[Piglit] [PATCH 10/13] tests/egl: add support for signal handler.
Kenney Phillis
kphillisjr at gmail.com
Thu Oct 31 15:48:06 CET 2013
---
tests/egl/egl-create-surface.c | 2 ++
tests/egl/egl-nok-swap-region.c | 2 ++
tests/egl/egl-nok-texture-from-pixmap.c | 2 ++
tests/egl/egl-query-surface.c | 2 ++
4 files changed, 8 insertions(+)
diff --git a/tests/egl/egl-create-surface.c b/tests/egl/egl-create-surface.c
index 2c7224e..91ac2bc 100644
--- a/tests/egl/egl-create-surface.c
+++ b/tests/egl/egl-create-surface.c
@@ -72,6 +72,8 @@ main(int argc, char *argv[])
{
struct egl_test test;
+ piglit_register_signal_handler();
+
egl_init_test(&test);
test.draw = draw;
diff --git a/tests/egl/egl-nok-swap-region.c b/tests/egl/egl-nok-swap-region.c
index b32bec9..616a0fc 100644
--- a/tests/egl/egl-nok-swap-region.c
+++ b/tests/egl/egl-nok-swap-region.c
@@ -102,6 +102,8 @@ main(int argc, char *argv[])
{
struct egl_test test;
+ piglit_register_signal_handler();
+
egl_init_test(&test);
test.extensions = extensions;
test.draw = draw;
diff --git a/tests/egl/egl-nok-texture-from-pixmap.c b/tests/egl/egl-nok-texture-from-pixmap.c
index 026e17b..cc8470e 100644
--- a/tests/egl/egl-nok-texture-from-pixmap.c
+++ b/tests/egl/egl-nok-texture-from-pixmap.c
@@ -105,6 +105,8 @@ main(int argc, char *argv[])
{
struct egl_test test;
+ piglit_register_signal_handler();
+
egl_init_test(&test);
test.extensions = extensions;
test.draw = draw;
diff --git a/tests/egl/egl-query-surface.c b/tests/egl/egl-query-surface.c
index d6424e4..54cf994 100644
--- a/tests/egl/egl-query-surface.c
+++ b/tests/egl/egl-query-surface.c
@@ -199,6 +199,8 @@ main(int argc, char *argv[])
parse_args(argv, &argc, &test_func);
+ piglit_register_signal_handler();
+
egl_init_test(&test);
test.draw = test_func;
test.window_width = window_width;
--
1.7.9.5
More information about the Piglit
mailing list