tests: Work around test warnings in clang-7

Self-assignment generates a Wself-assign-overloaded warning.
This commit is contained in:
Arseny Kapoulkine 2019-08-21 07:44:49 -07:00
parent 4f6e7454fd
commit a556845555
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ TEST_XML(xpath_api_nodeset_copy, "<node><foo/><foo/></node>")
xpath_node_set copy3; xpath_node_set copy3;
copy3 = set; copy3 = set;
copy3 = copy3; copy3 = xpath_node_set(copy3);
CHECK(copy3.size() == 2); CHECK(copy3.size() == 2);
CHECK_STRING(copy3[0].node().name(), STR("foo")); CHECK_STRING(copy3[0].node().name(), STR("foo"));

View File

@ -454,7 +454,7 @@ TEST_XML(xpath_variables_copy, "<node />")
CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring")); CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring"));
set3 = set3; set3 = xpath_variable_set(set3);
CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring")); CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring"));