| 517 | return status; |
| 518 | } |
| 519 | static bool pf_builtin_graph(const char *path) { |
| 520 | cbm_store_t *store = cbm_store_open_path_query(path); |
| 521 | if (!store) |
| 522 | return false; |
| 523 | cbm_node_t test = {0}, suite = {0}, sink = {0}; |
| 524 | bool ok = pf_node(store, PF_PROJECT ".builtin.TEST_alpha", "TEST_alpha", "builtin.c", "case", |
| 525 | &test) && |
| 526 | pf_node(store, PF_PROJECT ".builtin.SUITE_core", "SUITE_core", "builtin.c", "suite", |
| 527 | &suite) && |
| 528 | pf_node(store, PF_PROJECT ".builtin.builtin_sink", "builtin_sink", "builtin.c", NULL, |
| 529 | &sink) && |
| 530 | pf_call(store, test.id, sink.id) && pf_call(store, suite.id, sink.id); |
| 531 | cbm_node_free_fields(&test); |
| 532 | cbm_node_free_fields(&suite); |
| 533 | cbm_node_free_fields(&sink); |
| 534 | cbm_store_close(store); |
| 535 | return ok; |
| 536 | } |
| 537 | static bool pf_builtin_control(pf_fixture_t *f) { |
| 538 | static const char source[] = "void builtin_sink(void) {}\nTEST(alpha) { builtin_sink(); " |
| 539 | "}\nSUITE(core) { builtin_sink(); }\n"; |
no test coverage detected