| 10 | static bool monotonic_mock; |
| 11 | |
| 12 | static bool |
| 13 | check_background_thread_enabled(void) { |
| 14 | bool enabled; |
| 15 | size_t sz = sizeof(bool); |
| 16 | int ret = mallctl("background_thread", (void *)&enabled, &sz, NULL,0); |
| 17 | if (ret == ENOENT) { |
| 18 | return false; |
| 19 | } |
| 20 | assert_d_eq(ret, 0, "Unexpected mallctl error"); |
| 21 | return enabled; |
| 22 | } |
| 23 | |
| 24 | static bool |
| 25 | nstime_monotonic_mock(void) { |
no outgoing calls
no test coverage detected