aboutsummaryrefslogtreecommitdiff
path: root/runtime/test
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-05-28 14:10:47 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-05-28 14:10:47 +0000
commit93fe5cefbde9bfced3c6577219a98791ff7e3481 (patch)
tree44ce235f8a57f650cd1ebd6b8e1bce38da428997 /runtime/test
parent34def82866d4eb9c52a0ae65aa2abefbc4a923c5 (diff)
[openmp] [test] Skip kernel-breaking tests on NetBSD
The omp_taskloop_num_tasks and omp_taskwait have deadlooped on the NetBSD buildbot previously, practically hanging the host running it. Disable them until we can find a good solution, or make the kernel less fragile. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@361825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/test')
-rw-r--r--runtime/test/lit.cfg3
-rw-r--r--runtime/test/tasking/omp_taskloop_num_tasks.c6
-rw-r--r--runtime/test/tasking/omp_taskwait.c4
3 files changed, 13 insertions, 0 deletions
diff --git a/runtime/test/lit.cfg b/runtime/test/lit.cfg
index 6316ae7..ac5f446 100644
--- a/runtime/test/lit.cfg
+++ b/runtime/test/lit.cfg
@@ -103,6 +103,9 @@ if config.libomp_omp_version >= 40:
if 'Linux' in config.operating_system:
config.available_features.add("linux")
+if config.operating_system == 'NetBSD':
+ config.available_features.add("netbsd")
+
if config.operating_system in ['Linux', 'Windows']:
config.available_features.add('affinity')
diff --git a/runtime/test/tasking/omp_taskloop_num_tasks.c b/runtime/test/tasking/omp_taskloop_num_tasks.c
index 75efea6..bed2c5b 100644
--- a/runtime/test/tasking/omp_taskloop_num_tasks.c
+++ b/runtime/test/tasking/omp_taskloop_num_tasks.c
@@ -1,3 +1,5 @@
+// This test is known to be fragile on NetBSD kernel at the moment.
+// UNSUPPORTED: netbsd
// RUN: %libomp-compile-and-run
// RUN: %libomp-compile && env KMP_TASKLOOP_MIN_TASKS=1 %libomp-run
// REQUIRES: openmp-4.5
@@ -5,6 +7,10 @@
// These compilers don't support the taskloop construct
// UNSUPPORTED: gcc-4, gcc-5, icc-16
+// This test is known to be fragile on NetBSD kernel at the moment,
+// https://bugs.llvm.org/show_bug.cgi?id=42020.
+// UNSUPPORTED: netbsd
+
/*
* Test for taskloop
* Method: caculate how many times the iteration space is dispatched
diff --git a/runtime/test/tasking/omp_taskwait.c b/runtime/test/tasking/omp_taskwait.c
index c3a0ea7..584eceb 100644
--- a/runtime/test/tasking/omp_taskwait.c
+++ b/runtime/test/tasking/omp_taskwait.c
@@ -1,4 +1,8 @@
// RUN: %libomp-compile-and-run
+
+// This test is known to be fragile on NetBSD kernel at the moment,
+// https://bugs.llvm.org/show_bug.cgi?id=42020.
+// UNSUPPORTED: netbsd
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"