Lines Matching refs:result
198 char *result = NULL;
213 result = expand_ccname_template(tmp_ctx, kr, "abc/./ccfile", illegal_re, true, true);
214 fail_unless(result == NULL, "expand_ccname_template allowed relative path\n");
218 result = expand_ccname_template(tmp_ctx, kr, filename, illegal_re, true, true);
219 fail_unless(result == NULL, "expand_ccname_template allowed "
224 result = expand_ccname_template(tmp_ctx, kr, filename, illegal_re, true, true);
225 fail_unless(result == NULL, "expand_ccname_template allowed "
231 result = expand_ccname_template(tmp_ctx, kr, filename, illegal_re, true, true);
232 fail_unless(result == NULL, "expand_ccname_template allowed "
339 char *result;
345 result = expand_ccname_template(tmp_ctx, kr, file_template, NULL, true, true);
347 fail_unless(result != NULL, "Cannot expand template [%s].", file_template);
348 fail_unless(strcmp(result, expected) == 0,
349 "Expansion failed, result [%s], expected [%s].",
350 result, expected);
370 char *result;
381 result = expand_ccname_template(tmp_ctx, kr, file_template, NULL, true, true);
383 fail_unless(result != NULL, "Cannot expand template [%s].", file_template);
384 fail_unless(strcmp(result, expected_cs) == 0,
385 "Expansion failed, result [%s], expected [%s].",
386 result, expected_cs);
388 result = expand_ccname_template(tmp_ctx, kr, file_template, NULL, true, false);
390 fail_unless(result != NULL, "Cannot expand template [%s].", file_template);
391 fail_unless(strcmp(result, expected_ci) == 0,
392 "Expansion failed, result [%s], expected [%s].",
393 result, expected_ci);
427 char *result;
435 result = expand_ccname_template(tmp_ctx, kr, "%d/"FILENAME, NULL, true, true);
437 fail_unless(result == NULL, "Using %%d in ccache dir should fail.");
443 char *result;
451 result = expand_ccname_template(tmp_ctx, kr, "%d/"FILENAME, NULL, true, true);
453 fail_unless(result == NULL, "Using %%P in ccache dir should fail.");
467 char *result;
470 result = expand_ccname_template(tmp_ctx, kr, test_template, NULL, true, true);
472 fail_unless(result == NULL, "Unknown template [%s] should fail.",
478 result = expand_ccname_template(tmp_ctx, kr, test_template, NULL, true, true);
480 fail_unless(result == NULL, "Unknown template [%s] should fail.",
488 char *result;
490 result = expand_ccname_template(tmp_ctx, kr, test_template, NULL, true, true);
492 fail_unless(result == NULL, "Expected NULL as a result for an empty input.",
500 char *result;
502 result = expand_ccname_template(tmp_ctx, kr, test_template, NULL, true, true);
504 fail_unless(result != NULL, "Cannot expand template [%s].", test_template);
505 fail_unless(strcmp(result, test_template) == 0,
506 "Expansion failed, result [%s], expected [%s].",
507 result, test_template);
513 char *result;
519 result = expand_ccname_template(tmp_ctx, kr, file_template, NULL, true, true);
521 fail_unless(result != NULL, "Cannot expand template [%s].", file_template);
522 fail_unless(strcmp(result, expected) == 0,
523 "Expansion failed, result [%s], expected [%s].",
524 result, expected);
528 result = expand_ccname_template(tmp_ctx, kr, file_template, NULL, true, true);
530 fail_unless(result != NULL, "Cannot expand template [%s].", file_template);
531 fail_unless(strcmp(result, expected) == 0,
532 "Expansion failed, result [%s], expected [%s].",
533 result, expected);