hdf5/test/ttsafe.h
jhendersonHDF 5b18a76318 Refactor h5test.c, testframe.c and testpar.h testing frameworks (#4891)
Added new testframe.h header to document testing framework functions and
split them away from h5test.h and from test programs that don't
integrate with the testframe.c testing framework

Added new test setup callback to testframe.c testing framework

Added parameters to AddTest() to specify size of test parameters so they
can be copied for later use

Enabled HDF5 error stacks in testframe.c framework by default and added
some error stack suppressions to some testhdf5 tests

Added new maxthreads option to testframe.c framework to allow specifying
the maximum number of threads a multi-threaded test can use

Moved TestExpress functionality out of testframe.c and into more general
h5test.c for wider use by tests through getter and setter

Updated some tests to not mix and match functionality between h5test.c/h
and testframe.c/h

Moved some functionality from testphdf5.h into testpar.h for parallel
tests that aren't part of testphdf5

Added new parallel test library that contains common shared
functionality for parallel tests (similar to h5test library)
2024-10-02 16:06:18 -05:00

47 lines
1.7 KiB
C

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* 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://www.hdfgroup.org/licenses. *
* 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 TTSAFE_H
#define TTSAFE_H
/*
* Include required headers. This file tests internal library functions,
* so we include the private headers here.
*/
#include "testhdf5.h"
/* Prototypes for the support routines */
extern char *gen_name(int);
/* Prototypes for the test routines */
void tts_is_threadsafe(const void *);
#ifdef H5_HAVE_THREADSAFE
void tts_dcreate(const void *);
void tts_error(const void *);
void tts_cancel(const void *);
void tts_acreate(const void *);
void tts_attr_vlen(const void *);
/* Prototypes for the cleanup routines */
void cleanup_dcreate(void *);
void cleanup_error(void *);
void cleanup_cancel(void *);
void cleanup_acreate(void *);
void cleanup_attr_vlen(void *);
#endif /* H5_HAVE_THREADSAFE */
#endif /* TTSAFE_H */