aports/main/wayland/tests-ignore-debugger.patch
Natanael Copa 2ae8dd4d06 main/wayland: work around debugger detection in wayland
testsuite tries to detect if a debugger is attached. the detector
will give alse positive on grsec kernels. Add an environment variable to
force work around it.
2018-05-09 08:11:06 +00:00

15 lines
337 B
Diff

diff --git a/tests/test-runner.c b/tests/test-runner.c
index 82a0a7b..8c7e90d 100644
--- a/tests/test-runner.c
+++ b/tests/test-runner.c
@@ -287,6 +287,9 @@ is_debugger_attached(void)
pid_t pid;
int pipefd[2];
+ if (getenv("WAYLAND_TEST_IGNORE_DEBUGGER"))
+ return 0;
+
if (pipe(pipefd) == -1) {
perror("pipe");
return 0;