[Openmp-commits] [openmp] r349412 - [OpenMP] version the affinity format tests and fix one test

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Mon Dec 17 14:53:47 PST 2018


Author: jlpeyton
Date: Mon Dec 17 14:53:47 2018
New Revision: 349412

URL: http://llvm.org/viewvc/llvm-project?rev=349412&view=rev
Log:
[OpenMP] version the affinity format tests and fix one test

Added:
    openmp/trunk/runtime/test/affinity/format/lit.local.cfg
Modified:
    openmp/trunk/runtime/test/affinity/format/affinity_values.c

Modified: openmp/trunk/runtime/test/affinity/format/affinity_values.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/affinity/format/affinity_values.c?rev=349412&r1=349411&r2=349412&view=diff
==============================================================================
--- openmp/trunk/runtime/test/affinity/format/affinity_values.c (original)
+++ openmp/trunk/runtime/test/affinity/format/affinity_values.c Mon Dec 17 14:53:47 2018
@@ -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

Added: openmp/trunk/runtime/test/affinity/format/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/affinity/format/lit.local.cfg?rev=349412&view=auto
==============================================================================
--- openmp/trunk/runtime/test/affinity/format/lit.local.cfg (added)
+++ openmp/trunk/runtime/test/affinity/format/lit.local.cfg Mon Dec 17 14:53:47 2018
@@ -0,0 +1,2 @@
+if 'openmp-5.0' not in config.available_features:
+    config.unsupported = True




More information about the Openmp-commits mailing list