| 32 | return cbm_setenv("CBM_CACHE_DIR", fixture->path, 1) == 0; |
| 33 | } |
| 34 | static void restore_env(const char *key, char *value) { |
| 35 | if (value) |
| 36 | cbm_setenv(key, value, 1); |
| 37 | else |
| 38 | cbm_unsetenv(key); |
| 39 | free(value); |
| 40 | } |
| 41 | static void fixture_close(settings_fixture_t *fixture) { |
| 42 | cbm_runtime_settings_reset_for_tests(); |
| 43 | restore_env("CBM_CACHE_DIR", fixture->cache); |
no test coverage detected