diff --git a/src/tests.c b/src/tests.c index b24314bde..e21a9dbf0 100644 --- a/src/tests.c +++ b/src/tests.c @@ -874,9 +874,11 @@ static void _test_httpd(const tf_test_options_t* options) uv_sleep(1000); } +#if !defined(__HAIKU__) tf_ssb_t* ssb = tf_ssb_create(&loop, NULL, "file:out/test_db0.sqlite", NULL); const char* app_id = tf_ssb_db_get_property(ssb, "core", "path:test"); tf_ssb_destroy(ssb); +#endif _http_check_status_code("http://localhost:8080/404", 404); _http_check_status_code("http://localhost:8080/", 303); @@ -889,6 +891,7 @@ static void _test_httpd(const tf_test_options_t* options) _http_check_status_code("http://localhost:8080/~core/test/nonexistent.txt", 404); _http_check_body_contains("http://localhost:8080/&MV9b23bQeMQ7isAGTkoBZGErH853yGk0W/yUx1iU7dM=.sha256/view", "Hello, world!"); +#if !defined(__HAIKU__) char url[1024]; snprintf(url, sizeof(url), "http://localhost:8080/%s/", app_id); _http_check_body_contains(url, "Tilde Friends"); @@ -897,6 +900,7 @@ static void _test_httpd(const tf_test_options_t* options) snprintf(url, sizeof(url), "http://localhost:8080/%s/hello.txt", app_id); _http_check_body_contains(url, "Hello, world!"); tf_free((void*)app_id); +#endif uv_process_kill(&process, SIGTERM); uv_close((uv_handle_t*)&process, NULL);