]> git.evergreen-ils.org Git - Evergreen.git/commit
Enable MFHD tests to find their testdata
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Feb 2011 07:22:11 +0000 (07:22 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Feb 2011 07:22:11 +0000 (07:22 +0000)
commitf017d1261c369b9b5cc3c9cfc4f50d3cdf12a445
tree11f3845b234257f3d18a2f6d63d21ca81ab1fdaa
parent7e83b0b0f03c6667d0a34a720f2a92b4b1f44e25
Enable MFHD tests to find their testdata

When the MFHD tests wrapped in mfhd.t are invoked from outside of the directory,
they tests failed to find the mfhddata.txt file. Judicious use of the __FILE__
special literal and File::Basename::dirname() avoids that problem. Now we just
need to munge @INC to ensure that testlib.pm can be resolved (and hope that
no conflicts ever turn up).

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19442 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/test/mfhd.t