Skip to content

Commit

Permalink
Minor consistency improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored May 24, 2024
1 parent a2ccbfd commit 5aaf451
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/MaterialXTest/MaterialXCore/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,6 @@ TEST_CASE("Node Definition Creation", "[nodedef]")
REQUIRE(temp == nullptr);
}


// Remove default version attribute from previous definitions
for (mx::NodeDefPtr prevNodeDef : doc->getMatchingNodeDefs(NODENAME))
{
Expand Down Expand Up @@ -778,11 +777,12 @@ TEST_CASE("Node Definition Creation", "[nodedef]")

doc->removeChild(graph->getName());
}
std::string errors;
bool valid = doc->validate(&errors);

std::string message;
bool valid = doc->validate(&message);
if (!valid)
{
INFO("Validation errors: " + errors);
REQUIRE(valid);
INFO(message);
}
REQUIRE(valid);
}

0 comments on commit 5aaf451

Please sign in to comment.