|
@@ -69,11 +69,11 @@ START_TEST(test_the_test_environment)
|
|
|
/* Check the pem file */
|
|
|
#ifdef _WIN32
|
|
|
strcpy(buf, wd);
|
|
|
- strcat(buf, "\\resources\\ssl_cert.pem");
|
|
|
+ strcat(buf, "..\\..\\resources\\ssl_cert.pem");
|
|
|
f = fopen(buf, "rb");
|
|
|
#else
|
|
|
strcpy(buf, wd);
|
|
|
- strcat(buf, "/resources/ssl_cert.pem");
|
|
|
+ strcat(buf, "../../resources/ssl_cert.pem");
|
|
|
f = fopen(buf, "r");
|
|
|
#endif
|
|
|
|
|
@@ -166,8 +166,7 @@ START_TEST(test_mg_start_stop_https_server)
|
|
|
"listening_ports",
|
|
|
"8080,8443s",
|
|
|
"ssl_certificate",
|
|
|
- "resources/ssl_cert.pem", // TODO: check working path of CI test
|
|
|
- // system
|
|
|
+ "../../resources/ssl_cert.pem", // TODO: fix path in CI test environment
|
|
|
NULL,
|
|
|
};
|
|
|
size_t ports_cnt;
|
|
@@ -290,7 +289,7 @@ START_TEST(test_request_handlers)
|
|
|
OPTIONS[3] = ".";
|
|
|
#ifndef NO_SSL
|
|
|
OPTIONS[4] = "ssl_certificate";
|
|
|
- OPTIONS[5] = "resources/ssl_cert.pem";
|
|
|
+ OPTIONS[5] = "../../resources/ssl_cert.pem";
|
|
|
#endif
|
|
|
ck_assert(OPTIONS[sizeof(OPTIONS) / sizeof(OPTIONS[0]) - 1] == NULL);
|
|
|
ck_assert(OPTIONS[sizeof(OPTIONS) / sizeof(OPTIONS[0]) - 2] == NULL);
|