Skip to content
Snippets Groups Projects
Commit c0f7ef32 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

ensure precedence of local modules when testing executables

parent 786c0e4b
Branches
Tags
No related merge requests found
......@@ -17,4 +17,5 @@ EXTRA_DIST = \
README.md \
CHANGES.md \
t/edugain.xml \
t/lib.pm \
$(TESTS)
......@@ -214,7 +214,7 @@ sub run_executable {
my @args = $args ? split(/\s+/, $args) : ();
run(
[ $EXECUTABLE_NAME, '-I', 'lib', 'bin/' . $executable, @args ],
[ $EXECUTABLE_NAME, '-I', 'lib', '-I', 't', 'bin/' . $executable, @args ],
\my ($in, $out, $err)
);
return ($out, $err, $CHILD_ERROR >> 8);
......
t/lib.pm 0 → 100644
package lib;
# this module overrides the system one, in order to ensure precedence of local
# module version specificed on command-line over those already installed
sub import {
# do nothing
};
1;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment