Skip to content

Commit 576db7f

Browse files
committed
Fix unit tests; restore exception cmake cache variable
1 parent 3482d85 commit 576db7f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

cmake/ExternalMFEM.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug|debug|DEBUG")
7777
endif()
7878

7979
# Replace mfem abort calls with exceptions for testing, default off
80-
set(PALACE_MFEM_USE_EXCEPTIONS NO)
80+
set(PALACE_MFEM_USE_EXCEPTIONS NO CACHE BOOL "MFEM throw exceptions instead of abort calls")
8181

8282
set(MFEM_OPTIONS ${PALACE_SUPERBUILD_DEFAULT_ARGS})
8383
list(APPEND MFEM_OPTIONS

test/unit/test-config.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#include <fstream>
2+
#include <iostream>
3+
#include <sstream>
14
#include <string>
25
#include <fmt/format.h>
36
#include <catch2/catch_test_macros.hpp>

test/unit/test-tablecsv.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using namespace palace;
1010
TEST_CASE("TableCSV", "[tablecsv]")
1111
{
1212
Table table{};
13+
table.col_options.float_precision = 9;
1314
table.reserve(5, 2);
1415

1516
// Quick defaults.

0 commit comments

Comments
 (0)