| 969 | } |
| 970 | } |
| 971 | static bool pf_many_sources(pf_fixture_t *f) { |
| 972 | for (int i = 0; i < 65; ++i) { |
| 973 | char leaf[40], text[80]; |
| 974 | int a = snprintf(leaf, sizeof(leaf), "many_%02d.c", i); |
| 975 | int b = snprintf(text, sizeof(text), "void many_%02d(void) {}\n", i); |
| 976 | if (a <= 0 || (size_t)a >= sizeof(leaf) || b <= 0 || (size_t)b >= sizeof(text) || |
| 977 | !pf_source_write(f, leaf, text)) |
| 978 | return false; |
| 979 | } |
| 980 | cbm_file_info_t *files = NULL; |
| 981 | int count = 0; |
| 982 | cbm_discover_opts_t opts = {.mode = CBM_MODE_FULL}; |
| 983 | bool ok = cbm_discover(f->source, &opts, &files, &count) == 0 && count > 64; |
| 984 | cbm_discover_free(files, count); |
| 985 | return ok; |
| 986 | } |
| 987 | static bool pf_resource_limit(pf_fixture_t *f) { |
| 988 | cbm_git_context_t git = pf_git(f); |
| 989 | cbm_pipeline_frozen_inputs_t in = pf_inputs(f, "{}", &git, NULL); |
no test coverage detected