mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Makes testing parameters specified with AddTest non-const again when passed to test functions. This allows test functions to update their parameters during execution and is particularly useful for tests which use those parameters to accumulate statistics, error counts, etc. without resorting to global variables.
39 lines
1.7 KiB
C
39 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 LICENSE 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. *
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
#include "H5_api_attribute_test_parallel.h"
|
|
|
|
static void print_attribute_test_header(void *params);
|
|
|
|
static void
|
|
print_attribute_test_header(void H5_ATTR_UNUSED *params)
|
|
{
|
|
if (MAINPROCESS) {
|
|
printf("\n");
|
|
printf("**********************************************\n");
|
|
printf("* *\n");
|
|
printf("* API Parallel Attribute Tests *\n");
|
|
printf("* *\n");
|
|
printf("**********************************************\n\n");
|
|
}
|
|
}
|
|
|
|
void
|
|
H5_api_attribute_test_parallel_add(void)
|
|
{
|
|
/* Add a fake test to print out a header to distinguish different test interfaces */
|
|
AddTest("print_attribute_test_header", print_attribute_test_header, NULL, NULL, NULL, 0,
|
|
"Prints header for attribute tests");
|
|
|
|
/* No tests yet */
|
|
}
|