702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe * Copyright (C) 2011, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe * This Source Code Form is subject to the terms of the Mozilla Public
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe * License, v. 2.0. If a copy of the MPL was not distributed with this
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe * file, You can obtain one at http://mozilla.org/MPL/2.0/.
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe * Helper functions
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe/* task event handler, sets a boolean to true */
counter++;
isc_test_end();
ATF_CHECK_EQ(a, 0);
ATF_CHECK_EQ(b, 0);
#ifndef ISC_PLATFORM_USETHREADS
ATF_CHECK(a != 0);
ATF_CHECK(b != 0);
isc_test_end();
#ifdef ISC_PLATFORM_USETHREADS
ATF_CHECK_EQ(a, 0);
ATF_CHECK_EQ(b, 0);
ATF_CHECK_EQ(c, 0);
ATF_CHECK_EQ(d, 0);
ATF_CHECK_EQ(e, 0);
#ifdef ISC_PLATFORM_USETHREADS
#ifndef ISC_PLATFORM_USETHREADS
isc_test_end();
#ifdef ISC_PLATFORM_USETHREADS
#ifdef ISC_PLATFORM_USETHREADS
#ifndef ISC_PLATFORM_USETHREADS
c == isc_taskmgrmode_privileged ||
d == isc_taskmgrmode_privileged);
isc_test_end();
return (atf_no_error());