[Piglit] [PATCH] piglit-util: use _exit to skip context destruction
Marek Olšák
maraeo at gmail.com
Wed May 2 20:33:16 UTC 2018
From: Marek Olšák <marek.olsak at amd.com>
---
tests/util/piglit-util.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index ed7d21c95..01207ffa5 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -58,20 +58,21 @@
# include <sys/types.h>
# include <sys/stat.h>
# include <fcntl.h>
# include <unistd.h>
#else
# define USE_STDIO
#endif
#if defined(HAVE_UNISTD_H)
#include <unistd.h> // for usleep
+#define exit _exit /* skip atexit callbacks and other deinitializations */
#endif
#include "piglit-util.h"
#ifndef HAVE_ASPRINTF
/* Some versions of MinGW are missing _vscprintf's declaration, although they
* still provide the symbol in the import library.
*/
--
2.17.0
More information about the Piglit
mailing list