From 9e8cc45fdbc0cf825eff6d22366521c6e286920f Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 28 Jul 2011 15:49:12 -0400 Subject: [PATCH] Fix broken builds due to test that can't find its data LP 817699 reports a problem that began with commit e9cd992fa4dbf1013346336193cb7469ecee10a8, reintroducing a problem that had previously been resolved with commit f017d1261c369b9b5cc3c9cfc4f50d3cdf12a445. In short, tests can and are run from different directories, but a new test opened a file without making any allowance that the test might be run from anything other than the /test/ directory. This fix uses the dirname(__FILE__) approach to provide the appropriate relative directory for the test data, and enables the tests to be processed without dying. Signed-off-by: Dan Scott Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/test/mfhd.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/test/mfhd.t b/Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/test/mfhd.t index d9ad34bc6f..29ee865a65 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/test/mfhd.t +++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/test/mfhd.t @@ -66,7 +66,8 @@ while ($rec = testlib::load_MARC_rec($testdata, $testno++)) { close $testdata; # test: passthru_open_ended -open($testdata, "new(testlib::load_MARC_rec($testdata, $testno)); my $rec2 = MFHD->new(testlib::load_MARC_rec($testdata, $testno)); -- 2.11.0