Use FindBin in the 24-sql-gettext-unique.t test file so that it can be
run from directories other than Open-ILS/src/perlmods.
To test
-------
[1] Apply the patch.
[2] From the root of the Evergreen checkout, run
prove Open-ILS/src/perlmods/t/24-sql-gettext-unique.t
[3] Verify that the tests pass.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
use warnings;
use Test::More;
use Test::Output;
+use FindBin;
my $num_tests = 0;
my $data;
{
- open(my $fh, "<", "../sql/Pg/950.data.seed-values.sql")
+ open(my $fh, "<", "$FindBin::Bin/../../sql/Pg/950.data.seed-values.sql")
or die "Can't open 950.data.seed-values.sql: $!";
local $/ = undef;
$data = <$fh>;