From 2db2d3ab5071558627f76f7e48c548927d8fc4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Mon, 20 Mar 2023 12:19:54 +0100 Subject: [PATCH] Only opt-into tests for TOML Has the same implementation as JSON anyway, and it makes tests run into timeouts otherwise. --- examples/14_toml_template.cpp | 3 ++- test/SerialIOTest.cpp | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/14_toml_template.cpp b/examples/14_toml_template.cpp index 366323ee21..1d3d2f9f8d 100644 --- a/examples/14_toml_template.cpp +++ b/examples/14_toml_template.cpp @@ -103,7 +103,8 @@ void read() { "iteration_encoding": "variable_based", "json": { - "mode": "template" + "dataset": {"mode": "template"}, + "attribute": {"mode": "short"} } } )"; diff --git a/test/SerialIOTest.cpp b/test/SerialIOTest.cpp index 7649b44e72..90a1f88e4d 100644 --- a/test/SerialIOTest.cpp +++ b/test/SerialIOTest.cpp @@ -1584,7 +1584,15 @@ TEST_CASE("dtype_test", "[serial]") { for (auto const &t : testedFileExtensions()) { - dtype_test(t); + if (t == "json") + { + dtype_test(t); + dtype_test(t, R"(json.mode = "template")"); + } + else + { + dtype_test(t); + } } dtype_test("json", R"( {