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