Tests: show debugging hint when USDStageCreationTest fails

Setting the environment variable `PXR_PATH_DEBUG` non-empty will make the
USD library print the directories it uses to find its JSON files. This can
aid in debugging when this unit test fails. Now the failure message also
tells you about this.

No functional changes.
This commit is contained in:
Sybren A. Stüvel 2020-07-28 11:02:05 +02:00
parent a2a29327d9
commit 617e67529c
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ TEST_F(USDStageCreationTest, JSONFileLoadingTest)
unlink(filename.c_str());
}
else {
FAIL() << "unable to find suitable USD plugin to write " << filename;
FAIL() << "unable to find suitable USD plugin to write " << filename
<< "; re-run with the environment variable PXR_PATH_DEBUG non-empty to see which paths "
"are considered.";
}
}