diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2018-12-17 22:53:47 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2018-12-17 22:53:47 +0000 |
commit | f9fd93f0a363c74fdf959344642c9079b503605e (patch) | |
tree | 7045835cc7bb765579b53f202aad50acc70fe6e4 /runtime/test | |
parent | 91e1c35cfa716b49122246eada8906a279cc13b2 (diff) |
[OpenMP] version the affinity format tests and fix one test
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@349412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/test')
-rw-r--r-- | runtime/test/affinity/format/affinity_values.c | 14 | ||||
-rw-r--r-- | runtime/test/affinity/format/lit.local.cfg | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/runtime/test/affinity/format/affinity_values.c b/runtime/test/affinity/format/affinity_values.c index 20c9b7c..37ab210 100644 --- a/runtime/test/affinity/format/affinity_values.c +++ b/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/runtime/test/affinity/format/lit.local.cfg b/runtime/test/affinity/format/lit.local.cfg new file mode 100644 index 0000000..80583af --- /dev/null +++ b/runtime/test/affinity/format/lit.local.cfg @@ -0,0 +1,2 @@ +if 'openmp-5.0' not in config.available_features: + config.unsupported = True |