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.
This commit is contained in:
Natanael Copa 2018-05-09 08:05:56 +00:00
parent 3f2b59e548
commit 2ae8dd4d06
2 changed files with 19 additions and 3 deletions

View File

@ -13,7 +13,8 @@ depends_dev="libffi-dev expat-dev"
makedepends="$depends_dev doxygen xmlto graphviz grep libxml2-dev bash"
subpackages="$pkgname-dev $pkgname-libs-client:_libs $pkgname-libs-egl:_libs
$pkgname-libs-cursor:_libs $pkgname-libs-server:_libs"
source="http://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"
source="http://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz
tests-ignore-debugger.patch"
builddir="$srcdir/$pkgname-$pkgver"
@ -34,7 +35,7 @@ build() {
check() {
cd "$builddir"
make check
make check WAYLAND_TEST_IGNORE_DEBUGGER=1
}
package() {
@ -60,4 +61,5 @@ _libs() {
mv "$pkgdir"/usr/lib/*-$name.so.* "$subpkgdir"/usr/lib
}
sha512sums="f908917f1b575d2dc4d9770d3303e2637e8744fcb5c81feb2af2fe82cc51f54e22beaddfbe775fcf9623584169b7a062c75076132abeb888717180bfab53b3a8 wayland-1.15.0.tar.xz"
sha512sums="f908917f1b575d2dc4d9770d3303e2637e8744fcb5c81feb2af2fe82cc51f54e22beaddfbe775fcf9623584169b7a062c75076132abeb888717180bfab53b3a8 wayland-1.15.0.tar.xz
0f65a55265e9134ab08cabf67f9d1919c85c4cb6b69129e78bc6c50057cafcaf143007716a0fa73b2eb43d6b605944c320a12a36dbb5f15fcd2f5e770248c480 tests-ignore-debugger.patch"

View File

@ -0,0 +1,14 @@
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;