Fix reading of regex-resources in regex-tests
commit82a487d522106c1c5afb00f2fa6c9055e37ba5ad
authorMichal Nazarewicz <mina86@mina86.com>
Wed, 27 Jul 2016 15:25:34 +0000 (27 17:25 +0200)
committerMichal Nazarewicz <mina86@mina86.com>
Tue, 2 Aug 2016 13:39:10 +0000 (2 15:39 +0200)
treeef5cfd239c5ea5ac78133ee4912ee3e6538a2219
parent91d53091950d7aae6f16cf47d4cce754b5eacfe5
Fix reading of regex-resources in regex-tests

* test/src/regex-tests.el (regex-tests-generic-line): Referring to
‘buffer-file-name’ does not work when running the test from command
line, i.e. via make, which results in (wrong-type-argument stringp nil)
failures.  Replace it with hard-coded path.
(regex-tests-BOOST, regex-tests-PCRE, regex-tests-PTESTS-whitelist,
regex-tests-TESTS-whitelist): ‘regex-tests-generic-line’ now  includes
the ‘regex-resources’ path component so the tests don’t need to specify
it explicitly.
test/src/regex-tests.el