Skip to content

Commit 11aa53b

Browse files
committed
disable H5 test when interface disabled
1 parent 53421b3 commit 11aa53b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/tests/utils.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ TEST_CASE("read_mutiple_vis") {
142142
CHECK(uv_data.weights.isApprox(uv_multi.weights.segment(i * uv_data.size(), uv_data.size())));
143143
}
144144
}
145+
#ifdef PURIFY_H5
145146
SECTION("one HDF5 file") {
146147
const std::vector<std::string> names = {h5_file};
147148
const auto uv_data = utilities::read_visibility(h5_file);
@@ -157,6 +158,7 @@ TEST_CASE("read_mutiple_vis") {
157158
CHECK(uv_data.weights.isApprox(uv_multi.weights.segment(i * uv_data.size(), uv_data.size())));
158159
}
159160
}
161+
#endif
160162
}
161163
TEST_CASE("utilities [file exists]", "[file exists]") {
162164
std::string vis_file = vla_filename("at166B.3C129.c0.vis");

0 commit comments

Comments
 (0)