Skip to content

Commit

Permalink
CI fixes: NVIDIA
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Aug 18, 2023
1 parent 1c937b8 commit 4918ff0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ inline void write_test(const std::string &backend)
Series o = Series(
"../samples/serial_write." + backend,
Access::CREATE,
R"(rank_table = "hostname")");
R"({"rank_table": "hostname"})");

ParticleSpecies &e_1 = o.iterations[1].particles["e"];

Expand Down Expand Up @@ -1798,7 +1798,7 @@ inline void fileBased_write_test(const std::string &backend)
Series o = Series(
"../samples/subdir/serial_fileBased_write%03T." + backend,
Access::CREATE,
R"(rank_table="hostname")");
R"({"rank_table": "hostname"})");

ParticleSpecies &e_1 = o.iterations[1].particles["e"];

Expand Down Expand Up @@ -1918,7 +1918,7 @@ inline void fileBased_write_test(const std::string &backend)
Series o = Series(
"../samples/subdir/serial_fileBased_write%T." + backend,
Access::READ_ONLY,
R"(rank_table="hostname")");
R"({"rank_table": "hostname"})");

REQUIRE(o.iterations.size() == 5);
REQUIRE(o.iterations.count(1) == 1);
Expand Down Expand Up @@ -1996,7 +1996,7 @@ inline void fileBased_write_test(const std::string &backend)
Series o = Series(
"../samples/subdir/serial_fileBased_write%T." + backend,
Access::READ_WRITE,
R"(rank_table="hostname")");
R"({"rank_table": "hostname"})");

Check notice

Code scanning / CodeQL

Equality test on floating-point values Note test

Equality checks on floating point values can yield unexpected results.

REQUIRE(o.iterations.size() == 5);
o.iterations[6];
Expand Down Expand Up @@ -2038,7 +2038,7 @@ inline void fileBased_write_test(const std::string &backend)
Series o = Series(
"../samples/subdir/serial_fileBased_write%01T." + backend,
Access::READ_WRITE,
R"(rank_table="hostname")");
R"({"rank_table": "hostname"})");

REQUIRE(o.iterations.size() == 1);
/*
Expand Down

0 comments on commit 4918ff0

Please sign in to comment.