diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-28 12:02:05 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-28 12:02:05 +0300 |
commit | 617e67529c59351a2344f9bac47c79268a81e1d0 (patch) | |
tree | 84ee6c4062affdce7066f1fbd7a4f2f0ae70eccc /source | |
parent | a2a29327d93c94a2c7eea943b2c3f36aec659d08 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/io/usd/tests/usd_stage_creation_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/io/usd/tests/usd_stage_creation_test.cc b/source/blender/io/usd/tests/usd_stage_creation_test.cc index 96a98a78497..e6bd0bab6ce 100644 --- a/source/blender/io/usd/tests/usd_stage_creation_test.cc +++ b/source/blender/io/usd/tests/usd_stage_creation_test.cc @@ -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."; } } |