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"
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.
24  H5Eget_auto2(H5E_DEFAULT, &err_func, &client_data);
25  REQUIRE(client_data == nullptr);
26 }
27 
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
TEST_CASE("complex_helper", "[type_traits]")
REQUIRE(std::filesystem::exists(filename))
static bool enabled
status of hdf_error_suppression. An instance of this class changes enabled to true.