aboutsummaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2018-12-17 22:53:47 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2018-12-17 22:53:47 +0000
commitfca3ac543e58f7f3a57bd6de58b6e8644d3df168 (patch)
tree125a6f055386cf384c74be015a28ebb9c096fa05 /openmp
parent5640556b55680ceb3b450822895eb1e5bb3c9fb8 (diff)
downloadllvm-fca3ac543e58f7f3a57bd6de58b6e8644d3df168.zip
llvm-fca3ac543e58f7f3a57bd6de58b6e8644d3df168.tar.gz
llvm-fca3ac543e58f7f3a57bd6de58b6e8644d3df168.tar.bz2
[OpenMP] version the affinity format tests and fix one test
llvm-svn: 349412
Diffstat (limited to 'openmp')
-rw-r--r--openmp/runtime/test/affinity/format/affinity_values.c14
-rw-r--r--openmp/runtime/test/affinity/format/lit.local.cfg2
2 files changed, 15 insertions, 1 deletions
diff --git a/openmp/runtime/test/affinity/format/affinity_values.c b/openmp/runtime/test/affinity/format/affinity_values.c
index 20c9b7cc..37ab210 100644
--- a/openmp/runtime/test/affinity/format/affinity_values.c
+++ b/openmp/runtime/test/affinity/format/affinity_values.c
@@ -10,7 +10,19 @@
#include <stdlib.h>
#include <string.h>
#include <omp.h>
-#include "helper.h"
+
+#define XSTR(x) #x
+#define STR(x) XSTR(x)
+
+#define streqls(s1, s2) (!strcmp(s1, s2))
+
+#define check(condition) \
+ if (!(condition)) { \
+ fprintf(stderr, "error: %s: %d: " STR(condition) "\n", __FILE__, \
+ __LINE__); \
+ exit(1); \
+ }
+
#define DEBUG 0
#if DEBUG
diff --git a/openmp/runtime/test/affinity/format/lit.local.cfg b/openmp/runtime/test/affinity/format/lit.local.cfg
new file mode 100644
index 0000000..80583af
--- /dev/null
+++ b/openmp/runtime/test/affinity/format/lit.local.cfg
@@ -0,0 +1,2 @@
+if 'openmp-5.0' not in config.available_features:
+ config.unsupported = True