1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Update: Added additional diagnostic for resource matches

This commit is contained in:
Philipp Schafft 2018-08-08 10:15:12 +00:00
parent 6cf45fd11d
commit 88aa6c60c9

View File

@ -114,6 +114,8 @@ static inline resourcematch_result_t run_test_base(const struct test *test, reso
snprintf(name, sizeof(name), "pattern \"%s\" and string \"%s\" %s extract", test->pattern, test->string, extract ? "with" : "without");
ctest_test(name, test->expected_result == ret && ok);
ctest_diagnostic_printf("Expected: %s, Got: %s, Ok: %i", res2str(test->expected_result), res2str(ret), ok);
return ret;
}