test_init.c revision e0d98b5e6f4b658de5303bf8d74576d2555db68e
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * The contents of this file are subject to the terms of the Common Development and
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Distribution License (the License). You may not use this file except in compliance with the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * specific language governing permission and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * When distributing Covered Software, include this CDDL Header Notice in each file and include
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Header, with the fields enclosed by brackets [] replaced by your own identifying
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * information: "Portions copyright [year] [name of copyright owner]".
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Copyright 2015 ForgeRock AS.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterstatic void test_log_callback(void *arg, char *name, int error) {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster printf("%s -> error %d (%s)\n", name, error, strerror(error));
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster assert_int_equal(am_remove_shm_and_locks(instance, test_log_callback, &clearup_count), AM_SUCCESS);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster assert_int_equal(am_remove_shm_and_locks(instance, test_log_callback, &clearup_count), AM_SUCCESS);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster /* OS X mach semaphore is not cleared */