c15e906adf68f86f03d6dcb07b1b6c14cd4d5d14Tinderbox User * Copyright (C) 2011-2014, 2016, 2017 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt * Logging categories: this needs to match the list in bin/named/log.c.
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt { "client", 0 },
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt { "network", 0 },
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt { "update", 0 },
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt { "queries", 0 },
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt { "unmatched", 0 },
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt { "update-security", 0 },
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt { "query-errors", 0 },
f07b2fccaf6be13d9440d323e9e79ee84fe345e2Evan Hunt CHECK(isc_taskmgr_create(mctx, ncpus, 0, &taskmgr));
f07b2fccaf6be13d9440d323e9e79ee84fe345e2Evan Huntisc_test_begin(FILE *logfile, isc_boolean_t start_managers) {
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt CHECK(isc_log_usechannel(logconfig, "stderr", NULL, NULL));
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt * Sleep for 'usec' microseconds.
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt * No fractional-second sleep function is available, so we
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt * round up to the nearest second and sleep instead