diff --git a/src/node.c b/src/node.c index 5afd3a2..dbd61ff 100644 --- a/src/node.c +++ b/src/node.c @@ -223,7 +223,7 @@ int r3_tree_compile_patterns(R3Node * n, char **errstr) { free(n->combined_pattern); n->combined_pattern = cpat; - const char *pcre_error = NULL ; + const char *pcre_error = NULL; int pcre_erroffset; unsigned int option_bits = 0; diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 60b547f..7045efc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -23,6 +23,5 @@ add_r3_test(check_http_scheme check_http_scheme.c) add_r3_test(check_remote_addr check_remote_addr.c) add_r3_test(check_routes2 check_routes2.c) - add_executable(bench bench.c) target_link_libraries(bench r3) diff --git a/tests/check_routes2.c b/tests/check_routes2.c index 313daef..86e74aa 100644 --- a/tests/check_routes2.c +++ b/tests/check_routes2.c @@ -24,12 +24,10 @@ START_TEST (greedy_pattern) ck_assert(matched_route != NULL); ck_assert(matched_route->data == &uri0); - // fixme: should match - - // entry = match_entry_create("/foo"); - // matched_route = r3_tree_match_route(n, entry); - // ck_assert(matched_route != NULL); - // ck_assert(matched_route->data == &uri0); + entry = match_entry_create("/foo"); + matched_route = r3_tree_match_route(n, entry); + ck_assert(matched_route != NULL); + ck_assert(matched_route->data == &uri0); entry = match_entry_create("/foo/"); matched_route = r3_tree_match_route(n, entry); @@ -62,4 +60,3 @@ int main (int argc, char *argv[]) { srunner_free(runner); return number_failed; } -