QMCPACK
test_hdf_error_suppression.cpp
Go to the documentation of this file.
1
//////////////////////////////////////////////////////////////////////////////////////
2
// This file is distributed under the University of Illinois/NCSA Open Source License.
3
// See LICENSE file in top directory for details.
4
//
5
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
6
//
7
// File developed by: Mark Dewing, markdewing@gmail.com, University of Illinois at Urbana-Champaign
8
//
9
// File created by: Jeongnim Kim, jeongnim.kim@gmail.com, University of Illinois at Urbana-Champaign
10
//////////////////////////////////////////////////////////////////////////////////////
11
12
13
#include "catch.hpp"
14
#include "
hdf/hdf_error_suppression.h
"
15
16
using namespace
qmcplusplus
;
17
18
TEST_CASE
(
"hdf_error_suppression"
,
"[hdf]"
)
19
{
20
H5E_auto2_t err_func{};
21
void
* client_data{
nullptr
};
22
// catch main already contains an instance of hdf_error_suppression.
23
REQUIRE
(
hdf_error_suppression::enabled
==
true
);
24
H5Eget_auto2(H5E_DEFAULT, &err_func, &client_data);
25
REQUIRE
(client_data ==
nullptr
);
26
}
27
qmcplusplus
helper functions for EinsplineSetBuilder
Definition:
Configuration.h:43
qmcplusplus::TEST_CASE
TEST_CASE("complex_helper", "[type_traits]")
Definition:
test_complex_helper.cpp:38
qmcplusplus::REQUIRE
REQUIRE(std::filesystem::exists(filename))
hdf_error_suppression.h
qmcplusplus::hdf_error_suppression::enabled
static bool enabled
status of hdf_error_suppression. An instance of this class changes enabled to true.
Definition:
hdf_error_suppression.h:43
src
io
hdf
tests
test_hdf_error_suppression.cpp
Generated on Fri Jun 28 2024 10:45:14 for QMCPACK by
1.8.14