[Piglit] [PATCH 04/13] piglit-framework-gl: Add piglit signal handler.
Kenney Phillis
kphillisjr at gmail.com
Thu Oct 31 15:48:00 CET 2013
The signal handler in general is really important for platforms like
windows where a program will generate some dialog automatically when
running a program.
---
tests/util/piglit-framework-gl.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/util/piglit-framework-gl.h b/tests/util/piglit-framework-gl.h
index 7520f38..8360617 100644
--- a/tests/util/piglit-framework-gl.h
+++ b/tests/util/piglit-framework-gl.h
@@ -28,6 +28,8 @@
#include <assert.h>
#include <stdbool.h>
+#include "piglit-util.h"
+
/**
* A bitmask of these enums specifies visual attributes for the test's window.
*
@@ -210,6 +212,14 @@ piglit_gl_test_run(int argc, char *argv[],
{ \
struct piglit_gl_test_config config; \
\
+ /* Register Signal Handler to assist with automatically */ \
+ /* capturing call stack when crash occurs. This is to */ \
+ /* improve the distributed testing. */ \
+ /* Note: This is important for windows XP or newer since*/ \
+ /* there is dialogs that appear that get in the way of */ \
+ /* the Automated Testing */ \
+ piglit_register_signal_handler(); \
+ \
piglit_gl_test_config_init(&argc, argv, &config); \
\
config.init = piglit_init; \
--
1.7.9.5
More information about the Piglit
mailing list