summaryrefslogtreecommitdiffstats
path: root/c++/test
diff options
context:
space:
mode:
Diffstat (limited to 'c++/test')
-rw-r--r--c++/test/CMakeLists.txt1
-rw-r--r--c++/test/Makefile.in4
-rw-r--r--c++/test/tobject.cpp6
3 files changed, 7 insertions, 4 deletions
diff --git a/c++/test/CMakeLists.txt b/c++/test/CMakeLists.txt
index c171664..3eb08f4 100644
--- a/c++/test/CMakeLists.txt
+++ b/c++/test/CMakeLists.txt
@@ -38,6 +38,7 @@ configure_file (${HDF5_CPP_TEST_SOURCE_DIR}/H5srcdir_str.h.in H5srcdir_str.h @O
add_executable (cpp_testhdf5 ${CPP_TEST_SOURCES} )
target_include_directories (cpp_testhdf5 PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};${HDF5_TEST_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
+target_compile_options(cpp_testhdf5 PRIVATE "${HDF5_CMAKE_CXX_FLAGS}")
target_compile_definitions(cpp_testhdf5
PRIVATE $<$<BOOL:${HDF5_ENABLE_PARALLEL}>:MPICH_SKIP_MPICXX;MPICH_IGNORE_CXX_SEEK># Parallel/MPI, prevent spurious cpp/cxx warnings
)
diff --git a/c++/test/Makefile.in b/c++/test/Makefile.in
index c08ce1e..db66730 100644
--- a/c++/test/Makefile.in
+++ b/c++/test/Makefile.in
@@ -405,7 +405,7 @@ AMTAR = @AMTAR@
# AM_CFLAGS is an automake construct which should be used by Makefiles
# instead of CFLAGS, as CFLAGS is reserved solely for the user to define.
# This applies to FCFLAGS, CXXFLAGS, CPPFLAGS, and LDFLAGS as well.
-AM_CFLAGS = @AM_CFLAGS@ @H5_CFLAGS@
+AM_CFLAGS = @AM_CFLAGS@ @H5_CFLAGS@ @H5_ECFLAGS@
# Include src, test, and c++/src directories
AM_CPPFLAGS = @AM_CPPFLAGS@ @H5_CPPFLAGS@ -I$(top_srcdir)/src \
@@ -470,6 +470,7 @@ GREP = @GREP@
H5_CFLAGS = @H5_CFLAGS@
H5_CPPFLAGS = @H5_CPPFLAGS@
H5_CXXFLAGS = @H5_CXXFLAGS@
+H5_ECFLAGS = @H5_ECFLAGS@
H5_FCFLAGS = @H5_FCFLAGS@
H5_FORTRAN_SHARED = @H5_FORTRAN_SHARED@
H5_LDFLAGS = @H5_LDFLAGS@
@@ -589,6 +590,7 @@ docdir = $(exec_prefix)/doc
dvidir = @dvidir@
enable_shared = @enable_shared@
enable_static = @enable_static@
+examplesdir = @examplesdir@
exec_prefix = @exec_prefix@
fortran_linux_linker_option = @fortran_linux_linker_option@
host = @host@
diff --git a/c++/test/tobject.cpp b/c++/test/tobject.cpp
index b5e9ff0..095fe6a 100644
--- a/c++/test/tobject.cpp
+++ b/c++/test/tobject.cpp
@@ -76,7 +76,7 @@ static void test_get_objname()
// Attempted to create a same group to generate a failure, which should
// be caught with sub-class exception clause, if available.
try {
- Group grp1_2 = grp1.createGroup(GROUP1_2, 0);
+ grp1_2 = grp1.createGroup(GROUP1_2, 0);
}
catch (GroupIException& E)
{} // do nothing, exception expected
@@ -301,7 +301,7 @@ static void test_get_objtype()
issue_fail_msg("test_get_objtype", __LINE__, __FILE__);
}
} // test_get_objtype
-
+
/*-------------------------------------------------------------------------
* Function: test_open_object_header
*
@@ -435,7 +435,7 @@ static void test_open_object_header()
issue_fail_msg("test_file_name()", __LINE__, __FILE__, E.getCDetailMsg());
}
} /* test_open_object_header() */
-
+
/*-------------------------------------------------------------------------
* Function: test_is_valid
*