diff options
| author | Michal Nazarewicz | 2016-08-03 04:37:29 +0200 |
|---|---|---|
| committer | Michal Nazarewicz | 2016-08-03 14:44:29 +0200 |
| commit | 9a68740d9650d2825094296b737a73f158f664ab (patch) | |
| tree | f3112a8f49789f3e66dd487f775e1c3e9c4145bd /src/bytecode.c | |
| parent | f0b5d4bd3e17bc0a464b9ec69507413824568f9e (diff) | |
| download | emacs-9a68740d9650d2825094296b737a73f158f664ab.tar.gz emacs-9a68740d9650d2825094296b737a73f158f664ab.zip | |
Fix accessing regex-resources in out-of-tree test runs in regex-tests
[82a487d: Fix reading of regex-resources in regex-tests] attempted to
fix regex-tests failing when run from the source tree (i.e. via make)
by hard-coding path to regex-resources directory relative to the test
directory.
This fixed runs from the tree but broke the test when run using other
methods.
Fix by trying ‘load-file-name’ or ‘buffer-file-name’, whichever is set.
* test/src/regex-tests.el (regex-tests--resources-dir): New variable
storing path to the regex-resources directory.
(regex-tests-generic-line): Use aforementioned variable.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions