Skip to content

Commit

Permalink
fixup! operators: fix module library
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Aug 16, 2023
1 parent 12e85cc commit bf2f330
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions CTestCustom.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
"Warning #20208-D: '.*' is treated as '.*' in device code"
"Warning: '.*' is treated as '.*' in device code"
".*was specified as both a system and non-system include directory.*"
"Wunused-command-line-argument"
)
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
".*/thirdparty/.*"
Expand Down
6 changes: 6 additions & 0 deletions testing/adios2/bindings/C/TestBPWriteTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ TEST_F(ADIOS2_C_API, ADIOS2BPWriteTypes)
char *engineType = new char[engineTypeSize + 1]();
adios2_engine_get_type(engineType, &engineTypeSize, engineH);

#ifdef ADIOS2_HAVE_BP5
EXPECT_EQ(std::string(engineType, engineTypeSize), "BP5Writer");
#else
EXPECT_EQ(std::string(engineType, engineTypeSize), "BP4Writer");
#endif

adios2_close(engineH);

Expand All @@ -196,7 +200,9 @@ TEST_F(ADIOS2_C_API, ADIOS2BPWriteTypes)
adios2_mode m;
adios2_error e = adios2_engine_openmode(&m, engineH);
EXPECT_EQ(e, adios2_error_none);
#ifdef ADIOS2_HAVE_BP5
EXPECT_EQ(m, adios2_mode_readRandomAccess);
#endif

adios2_bool result;
char name[30];
Expand Down
13 changes: 12 additions & 1 deletion testing/adios2/interface/TestADIOSInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ TEST_F(ADIOS2_CXX11_API, APIToString)

auto engine = io.Open("test.bp", adios2::Mode::Write);

#ifdef ADIOS2_HAVE_BP5
EXPECT_EQ(ToString(engine), "Engine(Name: \"test.bp\", Type: \"BP5Writer\")");
#else
EXPECT_EQ(ToString(engine), "Engine(Name: \"test.bp\", Type: \"BP4Writer\")");
#endif
}

TEST_F(ADIOS2_CXX11_API, operatorLL)
Expand All @@ -149,8 +153,11 @@ TEST_F(ADIOS2_CXX11_API_IO, Engine)

adios2::Engine engine = m_Io.Open("types.bp", adios2::Mode::Write);
EXPECT_EQ(engine.Name(), "types.bp");
#ifdef ADIOS2_HAVE_BP5
EXPECT_EQ(engine.Type(), "BP5Writer");

#else
EXPECT_EQ(engine.Type(), "BP4Writer");
#endif
engine.Close();
}

Expand All @@ -161,7 +168,11 @@ TEST_F(ADIOS2_CXX11_API_IO, EngineDefault)

adios2::Engine engine = m_Io.Open("types.bp", adios2::Mode::Write);
EXPECT_EQ(engine.Name(), "types.bp");
#ifdef ADIOS2_HAVE_BP5
EXPECT_EQ(engine.Type(), "BP5Writer");
#else
EXPECT_EQ(engine.Type(), "BP4Writer");
#endif
engine.Close();
}

Expand Down

0 comments on commit bf2f330

Please sign in to comment.