| 1752 | static const char *exporting_index_db_path = NULL; |
| 1753 | static int exporting_index_export_rc = 0; |
| 1754 | static int exporting_index_callback(const char *name, const char *path, void *ud) { |
| 1755 | (void)ud; |
| 1756 | index_call_count++; |
| 1757 | /* What the daemon's index worker does after publish: export_after_publish |
| 1758 | * re-exports FAST because cbm_artifact_exists(root). */ |
| 1759 | int rc = cbm_artifact_export(exporting_index_db_path, path, name, CBM_ARTIFACT_FAST); |
| 1760 | if (rc != 0) { |
| 1761 | exporting_index_export_rc = rc; |
| 1762 | } |
| 1763 | return 0; |
| 1764 | } |
| 1765 | |
| 1766 | TEST(watcher_own_artifact_export_does_not_retrigger_issue1953) { |
| 1767 | char tmpdir[256]; |
nothing calls this directly
no test coverage detected