mirror of
https://github.com/nlohmann/json.git
synced 2026-09-01 05:57:14 +00:00
Bisect the other way: only the object container tests
The previous head touched only docs/, which AppVeyor's only_commits filter skips, so it produced no build and no status at all -- the pull request looked green without ever having been built on MSVC 2015 or 2017. Swap the guards instead of repeating that step: unit-custom-object-type.cpp is enabled and the array and binary translation units are disabled. AppVeyor already passed with all three disabled, so a failure here pins the cause on no_key_compare_json or void_erase_json, and a pass pins it on the array or binary file. Still temporary. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
@@ -17,6 +17,12 @@
|
|||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
// TEMPORARY: this translation unit is disabled to narrow down an AppVeyor
|
||||||
|
// failure on MSVC 2015/2017 whose build log this environment cannot reach.
|
||||||
|
// The macro is deliberately never defined; the guard is removed again as soon
|
||||||
|
// as the cause is known.
|
||||||
|
#ifdef JSON_BISECT_CUSTOM_CONTAINER_TESTS
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -148,3 +154,5 @@ TEST_CASE("array type without at()")
|
|||||||
CHECK(j.at(no_at_json::json_pointer("/1")) == 2);
|
CHECK(j.at(no_at_json::json_pointer("/1")) == 2);
|
||||||
CHECK_THROWS_AS(j.at(no_at_json::json_pointer("/3")), no_at_json::out_of_range);
|
CHECK_THROWS_AS(j.at(no_at_json::json_pointer("/3")), no_at_json::out_of_range);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -21,6 +21,12 @@
|
|||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// TEMPORARY: this translation unit is disabled to narrow down an AppVeyor
|
||||||
|
// failure on MSVC 2015/2017 whose build log this environment cannot reach.
|
||||||
|
// The macro is deliberately never defined; the guard is removed again as soon
|
||||||
|
// as the cause is known.
|
||||||
|
#ifdef JSON_BISECT_CUSTOM_CONTAINER_TESTS
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -77,3 +83,5 @@ TEST_CASE("binary type whose value type is not std::uint8_t")
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -17,11 +17,6 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
// TEMPORARY: this translation unit is disabled to narrow down an AppVeyor
|
|
||||||
// failure on MSVC 2015/2017 whose build log this environment cannot reach.
|
|
||||||
// The macro is deliberately never defined; the guard is removed again as soon
|
|
||||||
// as the cause is known.
|
|
||||||
#ifdef JSON_BISECT_CUSTOM_CONTAINER_TESTS
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
@@ -196,4 +191,3 @@ TEST_CASE("object type without key_compare")
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user