Lines Matching refs:test
47 const ns_test_id_t id; /* libns test identifier */
60 run_full_path_test(const ns_plugin_expandpath_test_params_t *test,
65 REQUIRE(test != NULL);
66 REQUIRE(test->id.description != NULL);
67 REQUIRE(test->input != NULL);
68 REQUIRE(test->result != ISC_R_SUCCESS || test->output != NULL);
72 * it can get cleaned up by _teardown() if the test fails.
74 *target = isc_mem_allocate(mctx, test->output_size);
79 result = ns_plugin_expandpath(test->input, *target, test->output_size);
84 if (result != test->result) {
85 fail_msg("# test \"%s\" on line %d: "
87 test->id.description, test->id.lineno, test->result,
88 isc_result_totext(test->result), result,
95 if (result == ISC_R_SUCCESS && strcmp(*target, test->output) != 0) {
96 fail_msg("# test \"%s\" on line %d: "
98 test->id.description, test->id.lineno, test->output,
105 /* test ns_plugin_expandpath() */