| 1121 | cbm_pipeline_frozen_create(&in, NULL) == CBM_PIPELINE_FROZEN_INVALID && ok; |
| 1122 | } |
| 1123 | static bool pf_unsupported_create(pf_fixture_t *f, cbm_pipeline_frozen_t *guard) { |
| 1124 | const char *configs[] = { |
| 1125 | "{\"test_impact\":{\"version\":1,\"tests\":{\"conventions\":[{" |
| 1126 | "\"language\":\"c\",\"role\":\"case\",\"define_macro\":\"CHECK\",\"name_" |
| 1127 | "args\":[0,1]}]}}}", |
| 1128 | "{\"test_impact\":{\"version\":1,\"tests\":{\"presets\":{\"pytest\":" |
| 1129 | "false}}}}"}; |
| 1130 | char missing[1024]; |
| 1131 | if (!pf_path(missing, sizeof(missing), f->home, "missing-source") || !pf_absent(missing)) |
| 1132 | return false; |
| 1133 | cbm_git_context_t git = pf_git(f); |
| 1134 | git.input_path = missing; |
| 1135 | git.worktree_root = missing; |
| 1136 | git.canonical_root = missing; |
| 1137 | bool ok = true; |
| 1138 | for (size_t i = 0; i < 2; ++i) { |
| 1139 | cbm_pipeline_frozen_inputs_t in = pf_inputs(f, configs[i], &git, NULL); |
| 1140 | in.source_root = missing; |
| 1141 | cbm_pipeline_frozen_t *out = guard; |
| 1142 | cbm_pipeline_frozen_status_t status = cbm_pipeline_frozen_create(&in, &out); |
| 1143 | bool one = status == CBM_PIPELINE_FROZEN_UNSUPPORTED && !out; |
| 1144 | if (out != guard) |
| 1145 | cbm_pipeline_frozen_free(out); |
| 1146 | ok = one && ok; |
| 1147 | } |
| 1148 | cbm_pipeline_frozen_t *out = guard; |
| 1149 | cbm_pipeline_frozen_status_t status = |
| 1150 | pf_create(f, "{\"test_impact\":{\"version\":1,\"tests\":null}}", NULL, &out); |
| 1151 | ok = status == CBM_PIPELINE_FROZEN_CONFIG && !out && ok; |
| 1152 | if (out != guard) |
| 1153 | cbm_pipeline_frozen_free(out); |
| 1154 | return ok && pf_absent(missing); |
| 1155 | } |
| 1156 | static bool pf_mutate_independent_controls(pf_fixture_t *f, atomic_int *cancelled) { |
| 1157 | cbm_pipeline_t *ordinary = cbm_pipeline_new(f->source, f->control, CBM_MODE_FAST); |
| 1158 | if (!ordinary) |
no test coverage detected