openmp-validation: add current directory to @INC for newer Perl

Perl v5.26.0 has removed the current directory from the include
path. This breaks the `run_test.pl` script which tries to load modules
from the build directory and fails if the system Perl is 5.26.0 or
newer.

Error message: `Can't locate ompts_parserFunctions.pm in @INC`
This commit is contained in:
Moritz Bunkus 2017-07-09 14:58:29 +02:00
parent e2ecdb2d15
commit 16aa4d0347
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
diff --git a/runtest.pl b/runtest.pl
index 3472351..e84595b 100755
--- a/runtest.pl
+++ b/runtest.pl
@@ -1,5 +1,9 @@
#!/usr/bin/env perl
+BEGIN {
+ unshift @INC, '.';
+}
+
# runtest [options] FILENAME
#
# Read the file FILENAME. Each line contains a test.