Unit test
Add unit test for Issue 848 (segfault in ~Document)
This commit is contained in:
parent
26e089b9a2
commit
0ec4e86f14
@ -1281,6 +1281,12 @@ TEST(SchemaValidatingWriter, Simple) {
|
|||||||
EXPECT_TRUE(validator.GetInvalidDocumentPointer() == SchemaDocument::PointerType(""));
|
EXPECT_TRUE(validator.GetInvalidDocumentPointer() == SchemaDocument::PointerType(""));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(Schema, Issue848) {
|
||||||
|
rapidjson::Document d;
|
||||||
|
rapidjson::SchemaDocument s(d);
|
||||||
|
rapidjson::GenericSchemaValidator<rapidjson::SchemaDocument, rapidjson::Document> v(s);
|
||||||
|
}
|
||||||
|
|
||||||
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
||||||
|
|
||||||
static SchemaDocument ReturnSchemaDocument() {
|
static SchemaDocument ReturnSchemaDocument() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user