Fix broken builds due to test that can't find its data
authorDan Scott <dan@coffeecode.net>
Thu, 28 Jul 2011 19:49:12 +0000 (15:49 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 28 Jul 2011 19:59:04 +0000 (15:59 -0400)
commit7e282412eb10c4a25604fea6de739f9558fb6fe4
tree28eb11026542dea12985ef6ec7ece16a1d8b3b0f
parent0104c386c3e76e59d114a2f9b5216541435d46fb
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 <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/OpenILS/Utils/MFHD/test/mfhd.t