TestErrPrintf("*** UNEXPECTED VALUE from %s should be " _format ", but is " _format " at line %4d " \
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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 files COPYING and Copyright.html.  COPYING can be found at the root   *
 * of the source code distribution tree; Copyright.html can be found at the  *
 * root level of an installed copy of the electronic HDF5 document set and   *
 * is linked from the top-level documents page.  It can also be found at     *
 * http://hdfgroup.org/HDF5/doc/Copyright.html.  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));          \
   }                                          \