aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2016-01-23 13:07:06 -0800
committerLev Walkin <vlm@lionet.info>2016-01-23 13:07:06 -0800
commit8be766aa8ea0ec65bad84f007ecd65b1bed59b9a (patch)
treeddc35b13e004b31218ad77578aa8d5fce8074f2d
parentd7a4621673400f1ea07f43b44389f7a04161e4b4 (diff)
use -Define to figure out where to get tests from
-rw-r--r--libasn1fix/check_fixer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libasn1fix/check_fixer.c b/libasn1fix/check_fixer.c
index 86caa6ca..305c5678 100644
--- a/libasn1fix/check_fixer.c
+++ b/libasn1fix/check_fixer.c
@@ -58,8 +58,8 @@ main(int ac, char **av) {
* Go into a directory with tests.
*/
if(ac <= 1) {
- fprintf(stderr, "Testing in ./tests...\n");
- ret = chdir("../tests");
+ fprintf(stderr, "Testing in " TOP_SRCDIR_S "/tests...\n");
+ ret = chdir(TOP_SRCDIR_S "/tests");
assert(ret == 0);
#ifdef _WIN32
dir = _findfirst("*.asn1", &c_file);