TestErrPrintf ("*** UNEXPECTED RETURN from %s: returned value of %p is not equal to %p line %4d in %s\n",  \
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
 * This header file contains information required for testing the HDF5 library.
 */
#ifndef TESTHDF5_H
#define TESTHDF5_H
/*
 * Include required headers.  This file tests internal library functions,
 * so we include the private headers here.
 */
#include "H5private.h"
#include "H5Eprivate.h"
/* Include generic testing header also */
#include "h5test.h"
/* Use %ld to print the value because long should cover most cases. */
/* Used to make certain a return value _is_not_ a value */
#define CHECK(ret, val, where) do {                                                 \
    if (VERBOSE_HI) {                                                               \
        print_func("   Call to routine: %15s at line %4d "                          \
            "in %s returned %ld \n",                                                \
            where, (int)__LINE__, __FILE__,                                         \
            (long)(ret));                                                           \
    }                                                                               \
    if ((ret) == (val)) {                                                           \
        TestErrPrintf("*** UNEXPECTED RETURN from %s is %ld at line %4d "           \
            "in %s\n", where, (long)(ret), (int)__LINE__, __FILE__);                \
        H5Eprint2(H5E_DEFAULT, stdout);                                             \
    }                                                                               \
} while(0)
#define CHECK_I(ret,where) {                                                        \
   if (VERBOSE_HI) {                                                                \
      print_func("   Call to routine: %15s at line %4d in %s returned %ld\n",       \
                 (where), (int)__LINE__, __FILE__, (long)(ret));                    \
   }                                                                                \