Cleanup of the test code that looks for the WolfSSL root directory. Now it tries to open the certs/ntru-cert.pem file in each directory up (limited to 5) until it opens it.

This commit is contained in:
David Garske
2015-10-28 23:54:08 -07:00
parent d31cec0df0
commit f977caa492
7 changed files with 42 additions and 123 deletions
+1 -4
View File
@@ -60,10 +60,7 @@ int unit_test(int argc, char** argv)
#endif /* HAVE_CAVIUM */
#ifndef WOLFSSL_TIRTOS
if (CurrentDir("tests") || CurrentDir("_build"))
ChangeDirBack(1);
else if (CurrentDir("Debug") || CurrentDir("Release"))
ChangeDirBack(3);
ChangeToWolfRoot();
#endif
ApiTest();