Index: openmp/trunk/runtime/test/affinity/format/affinity_display.1.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/affinity_display.1.c +++ openmp/trunk/runtime/test/affinity/format/affinity_display.1.c @@ -1,5 +1,5 @@ // RUN: %libomp-compile -// RUN: env OMP_DISPLAY_AFFINITY=TRUE OMP_NUM_THREADS=4 OMP_PLACES='{0,1},{2,3},{4,5},{6,7}' %libomp-run | python %S/check.py -c 'CHECK' %s +// RUN: env OMP_DISPLAY_AFFINITY=TRUE OMP_NUM_THREADS=4 OMP_PLACES='{0,1},{2,3},{4,5},{6,7}' %libomp-run | %python %S/check.py -c 'CHECK' %s // Affinity Display examples #include Index: openmp/trunk/runtime/test/affinity/format/api.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/api.c +++ openmp/trunk/runtime/test/affinity/format/api.c @@ -1,5 +1,5 @@ // RUN: %libomp-compile-and-run -// RUN: %libomp-run | python %S/check.py -c 'CHECK' %s +// RUN: %libomp-run | %python %S/check.py -c 'CHECK' %s #include #include Index: openmp/trunk/runtime/test/affinity/format/api2.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/api2.c +++ openmp/trunk/runtime/test/affinity/format/api2.c @@ -1,5 +1,5 @@ // RUN: %libomp-compile-and-run -// RUN: %libomp-run | python %S/check.py -c 'CHECK' %s +// RUN: %libomp-run | %python %S/check.py -c 'CHECK' %s #include #include Index: openmp/trunk/runtime/test/affinity/format/increase.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/increase.c +++ openmp/trunk/runtime/test/affinity/format/increase.c @@ -1,4 +1,4 @@ -// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true %libomp-run | python %S/check.py -c 'CHECK' %s +// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true %libomp-run | %python %S/check.py -c 'CHECK' %s #include #include Index: openmp/trunk/runtime/test/affinity/format/nested.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/nested.c +++ openmp/trunk/runtime/test/affinity/format/nested.c @@ -1,4 +1,4 @@ -// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES=threads OMP_PROC_BIND=spread,close %libomp-run | python %S/check.py -c 'CHECK' %s +// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES=threads OMP_PROC_BIND=spread,close %libomp-run | %python %S/check.py -c 'CHECK' %s // REQUIRES: affinity #include Index: openmp/trunk/runtime/test/affinity/format/nested2.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/nested2.c +++ openmp/trunk/runtime/test/affinity/format/nested2.c @@ -1,4 +1,4 @@ -// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES=threads OMP_PROC_BIND=spread,close KMP_HOT_TEAMS_MAX_LEVEL=2 %libomp-run | python %S/check.py -c 'CHECK' %s +// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES=threads OMP_PROC_BIND=spread,close KMP_HOT_TEAMS_MAX_LEVEL=2 %libomp-run | %python %S/check.py -c 'CHECK' %s #include #include Index: openmp/trunk/runtime/test/affinity/format/nested_mixed.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/nested_mixed.c +++ openmp/trunk/runtime/test/affinity/format/nested_mixed.c @@ -1,4 +1,4 @@ -// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true %libomp-run | python %S/check.py -c 'CHECK' %s +// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true %libomp-run | %python %S/check.py -c 'CHECK' %s #include #include Index: openmp/trunk/runtime/test/affinity/format/nested_serial.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/nested_serial.c +++ openmp/trunk/runtime/test/affinity/format/nested_serial.c @@ -1,4 +1,4 @@ -// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true %libomp-run | python %S/check.py -c 'CHECK' %s +// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true %libomp-run | %python %S/check.py -c 'CHECK' %s #include #include Index: openmp/trunk/runtime/test/affinity/format/proc_bind.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/proc_bind.c +++ openmp/trunk/runtime/test/affinity/format/proc_bind.c @@ -1,4 +1,4 @@ -// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES='{0},{0,1},{0},{0,1},{0},{0,1},{0},{0,1},{0},{0,1},{0}' %libomp-run | python %S/check.py -c 'CHECK' %s +// RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES='{0},{0,1},{0},{0,1},{0},{0,1},{0},{0,1},{0},{0,1},{0}' %libomp-run | %python %S/check.py -c 'CHECK' %s // REQUIRES: affinity #include Index: openmp/trunk/runtime/test/affinity/format/simple.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/simple.c +++ openmp/trunk/runtime/test/affinity/format/simple.c @@ -1,10 +1,10 @@ // RUN: %libomp-compile -// RUN: env OMP_DISPLAY_AFFINITY=false %libomp-run | python %S/check.py -c 'NOTHING' %s -// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=1 %libomp-run | python %S/check.py -c 'CHECK' %s -// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=2 %libomp-run | python %S/check.py -c 'CHECK-2' %s -// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=3 %libomp-run | python %S/check.py -c 'CHECK-3' %s -// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=4 %libomp-run | python %S/check.py -c 'CHECK-4' %s -// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=8 %libomp-run | python %S/check.py -c 'CHECK-8' %s +// RUN: env OMP_DISPLAY_AFFINITY=false %libomp-run | %python %S/check.py -c 'NOTHING' %s +// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=1 %libomp-run | %python %S/check.py -c 'CHECK' %s +// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=2 %libomp-run | %python %S/check.py -c 'CHECK-2' %s +// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=3 %libomp-run | %python %S/check.py -c 'CHECK-3' %s +// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=4 %libomp-run | %python %S/check.py -c 'CHECK-4' %s +// RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=8 %libomp-run | %python %S/check.py -c 'CHECK-8' %s #include #include Index: openmp/trunk/runtime/test/affinity/format/simple_env.c =================================================================== --- openmp/trunk/runtime/test/affinity/format/simple_env.c +++ openmp/trunk/runtime/test/affinity/format/simple_env.c @@ -1,5 +1,5 @@ // RUN: %libomp-compile -// RUN: env OMP_DISPLAY_AFFINITY=true OMP_AFFINITY_FORMAT='TESTER-ENV: tl:%L tn:%n nt:%N' OMP_NUM_THREADS=8 %libomp-run | python %S/check.py -c 'CHECK-8' %s +// RUN: env OMP_DISPLAY_AFFINITY=true OMP_AFFINITY_FORMAT='TESTER-ENV: tl:%L tn:%n nt:%N' OMP_NUM_THREADS=8 %libomp-run | %python %S/check.py -c 'CHECK-8' %s #include #include Index: openmp/trunk/runtime/test/lit.cfg =================================================================== --- openmp/trunk/runtime/test/lit.cfg +++ openmp/trunk/runtime/test/lit.cfg @@ -124,6 +124,7 @@ config.substitutions.append(("%clang", config.test_c_compiler)) config.substitutions.append(("%openmp_flags", config.test_openmp_flags)) config.substitutions.append(("%flags", config.test_flags)) +config.substitutions.append(("%python", '"%s"' % (sys.executable))) if config.has_ompt: config.substitutions.append(("FileCheck", config.test_filecheck))