From 7e7af76a71cf2e3dd74abe6d1ced9a9199792dba Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 15 Jan 2012 11:31:48 +0000 Subject: [PATCH] Eet tests: An ugly hack to make it work with absolute paths. SVN revision: 67231 --- legacy/eet/src/tests/eet_suite.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/legacy/eet/src/tests/eet_suite.c b/legacy/eet/src/tests/eet_suite.c index afff25c66d..e68b22b453 100644 --- a/legacy/eet/src/tests/eet_suite.c +++ b/legacy/eet/src/tests/eet_suite.c @@ -24,7 +24,7 @@ #include "eet_suite.h" -#define CERT_DIR "src/tests/" TESTS_SRC_DIR +#define CERT_DIR ((*TESTS_SRC_DIR == '/') ? TESTS_SRC_DIR : "src/tests/" TESTS_SRC_DIR) START_TEST(eet_test_init) { @@ -1648,8 +1648,7 @@ START_TEST(eet_identity_simple) { static char CWD[1024]; getcwd(CWD, 1024); - perror(NULL); - printf("TAsn: '%s' '%s'\n", CWD, CERT_DIR); + printf("TAsn: '%s' '%s' '%s'\n", strerror(errno), CWD, CERT_DIR); } fail_if(chret); fail_if(!(noread = fopen("/dev/null", "w")));