Skip to content

Commit 1e8a6b7

Browse files
committed
Revert "deactivate malicious tests"
This reverts commit 246609ff5fbe5edb68119b7f3b29a40e7bf23d2d.
1 parent 304b370 commit 1e8a6b7

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

test/ParallelIOTest.cpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@
4040
static void openPMD_parallel_##name(); \
4141
TEST_CASE(#name, tags) \
4242
{ \
43-
int flag; \
44-
MPI_Initialized(&flag); \
45-
if (!flag) \
46-
{ \
47-
throw std::runtime_error("MPI IS NOT INITIALIZED"); \
48-
} \
4943
MPI_Barrier(MPI_COMM_WORLD); \
5044
int rank; \
5145
MPI_Comm_rank(MPI_COMM_WORLD, &rank); \
@@ -59,14 +53,6 @@
5953
} \
6054
static void openPMD_parallel_##name()
6155

62-
#define DEACTIVATE_TEST_CASE(name, tags) \
63-
static void openPMD_parallel_##name(); \
64-
TEST_CASE(#name, tags) \
65-
{ \
66-
return; \
67-
} \
68-
static void openPMD_parallel_##name()
69-
7056
#if !openPMD_HAVE_MPI
7157
TEST_CASE("none", "[parallel]")
7258
{}
@@ -526,7 +512,7 @@ void available_chunks_test(std::string const &file_ending)
526512
}
527513
}
528514

529-
DEACTIVATE_TEST_CASE(available_chunks_test, "[parallel][adios]")
515+
PARALLEL_TEST_CASE(available_chunks_test, "[parallel][adios]")
530516
{
531517
available_chunks_test("bp");
532518
}
@@ -588,7 +574,7 @@ PARALLEL_TEST_CASE(extend_dataset, "[parallel]")
588574
#endif
589575

590576
#if openPMD_HAVE_ADIOS2 && openPMD_HAVE_MPI
591-
DEACTIVATE_TEST_CASE(adios_write_test, "[parallel][adios]")
577+
PARALLEL_TEST_CASE(adios_write_test, "[parallel][adios]")
592578
{
593579
Series o = Series(
594580
"../samples/parallel_write.bp",

0 commit comments

Comments
 (0)