unprotect_entry(file_ptr, type, tmp_idx, (dirty_destroys ? H5C__DIRTIED_FLAG : H5C__NO_FLAGS_SET) | H5C__DELETED_FLAG);
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the COPYING file, which can be found at the root of the source code       *
 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.  *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Programmer:  John Mainzer
 *              10/27/05
 *
 *      This file contains common code for tests of the cache
 *      implemented in H5C.c
 */
#include "H5CXprivate.h"        /* API Contexts                         */
#include "H5MFprivate.h"
#include "H5MMprivate.h"
#include "cache_common.h"
/* global variable declarations: */
const char *FILENAME[] = {
    "cache_test",
    "cache_api_test",
    NULL
};
hid_t saved_fapl_id = H5P_DEFAULT; /* store the fapl id here between
                    * cache setup and takedown.  Note
                    * that if saved_fapl_id == H5P_DEFAULT,
                    * we assume that there is no fapl to
                    * close.
                    */
hid_t saved_fcpl_id = H5P_DEFAULT; /* store the fcpl id here between
                    * cache setup and takedown.  Note
                    * that if saved_fcpl_id == H5P_DEFAULT,
                    * we assume that there is no fcpl to
                    * close.
                    */
hid_t saved_fid = -1; /* store the file id here between cache setup
               * and takedown.
               */
H5C_t * saved_cache = NULL; /* store the pointer to the instance of