QMCPACK
test_hdf_error_suppression.cpp File Reference
+ Include dependency graph for test_hdf_error_suppression.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("hdf_error_suppression", "[hdf]")
 

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "hdf_error_suppression"  ,
""  [hdf] 
)

Definition at line 18 of file test_hdf_error_suppression.cpp.

References hdf_error_suppression::enabled, and qmcplusplus::REQUIRE().

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 }
REQUIRE(std::filesystem::exists(filename))