diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 96435a636..4444f72ba 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -14,4 +14,4 @@ jobs: - name: build run: cmake --build build --parallel 10 - name: test - run: cd build ; ctest -j 10 + run: cd build ; ctest -j 10 --output-on-failure diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 5aa0dacbb..6ee33cfae 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -14,4 +14,4 @@ jobs: - name: build run: cmake --build build --parallel 10 - name: test - run: cd build ; ctest -j 10 + run: cd build ; ctest -j 10 --output-on-failure diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2758c185d..f4b07c89b 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -14,4 +14,4 @@ jobs: - name: build run: cmake --build build --parallel 10 - name: test - run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode" + run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode" --output-on-failure diff --git a/test/src/unit-bson.cpp b/test/src/unit-bson.cpp index 2a17f180e..3f3dbd10e 100644 --- a/test/src/unit-bson.cpp +++ b/test/src/unit-bson.cpp @@ -499,7 +499,7 @@ TEST_CASE("BSON") const auto s = std::vector(N, 'x'); json j = { - { "entry", json::binary(s) } + { "entry", json::binary(s, 0) } }; std::vector expected = diff --git a/test/src/unit-udt.cpp b/test/src/unit-udt.cpp index bb1c1f1b6..2040899ed 100644 --- a/test/src/unit-udt.cpp +++ b/test/src/unit-udt.cpp @@ -765,9 +765,12 @@ TEST_CASE("different basic_json types conversions") SECTION("binary") { - json j = json::binary({1, 2, 3}); + json j = json::binary({1, 2, 3}, 42); custom_json cj = j; - CHECK(cj.get_binary() == j.get_binary()); + CHECK(cj.get_binary().subtype() == 42); + std::vector cv = cj.get_binary(); + std::vector v = j.get_binary(); + CHECK(cv == v); } SECTION("object")