From da8eba2603edc17cb5698c616da7af386a4b9411 Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 6 Dec 2012 10:01:01 -0800 Subject: [PATCH] fix distcheck pathing, cyassl-config distclean --- Makefile.am | 2 ++ tests/unit.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/Makefile.am b/Makefile.am index 2c98058e8..d6a47b4c0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,6 +60,8 @@ endif TESTS += $(check_PROGRAMS) test: check +DISTCLEANFILES+= cyassl-config + maintainer-clean-local: -rm Makefile.in -rm aclocal.m4 diff --git a/tests/unit.c b/tests/unit.c index 85efe5b95..bc3154ace 100644 --- a/tests/unit.c +++ b/tests/unit.c @@ -19,6 +19,11 @@ int main(int argc, char** argv) (void)argv; printf("starting unit tests...\n"); + if (CurrentDir("tests")) + ChangeDirBack(1); + else if (CurrentDir("build")) + ChangeDirBack(2); + if ( (ret = ApiTest()) != 0) { printf("api test failed with %d\n", ret); return ret;