| 444 | } |
| 445 | |
| 446 | static long long settings_revision(const char *cache) { |
| 447 | yyjson_doc *snapshot = read_snapshot(cache); |
| 448 | const char *text = |
| 449 | snapshot ? yyjson_get_str(yyjson_obj_get(yyjson_doc_get_root(snapshot), "revision")) : NULL; |
| 450 | long long revision = text ? strtoll(text, NULL, 10) : -1; |
| 451 | yyjson_doc_free(snapshot); |
| 452 | return revision; |
| 453 | } |
| 454 | |
| 455 | /* A test that fails between init and fixture_close leaves the settings bound |
| 456 | * to its own cache; the lock tests reset first so each one fails on its own |
no test coverage detected