Skip to content

Commit c42a0b4

Browse files
sunyabpixar-oss
authored andcommitted
sdf: Disable testSdfUsdcVersioning for Wasm builds
This test depends on an env var, which is currently unsupported in this configuration. (Internal change: 2403715)
1 parent 6e96fe1 commit c42a0b4

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

pxr/usd/sdf/CMakeLists.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,15 @@ pxr_register_test(testSdfUsdcInvalidPrimChildren
752752
TESTENV testenv/testSdfUsdcInvalidPrimChildren.testenv
753753
EXPECTED_RETURN_CODE 0
754754
)
755-
pxr_register_test(testSdfUsdcVersioning
756-
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testSdfUsdcVersioning"
757-
TESTENV testenv/testSdfUsdcVersioning
758-
EXPECTED_RETURN_CODE 0
759-
ENV
760-
PXR_USDC_EMIT_DEPRECATION_WARNINGS=1
761-
)
755+
756+
# This test is disabled for emscripten builds because it depends on
757+
# environment variables, which are currently unsupported in that configuration.
758+
if (NOT EMSCRIPTEN)
759+
pxr_register_test(testSdfUsdcVersioning
760+
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testSdfUsdcVersioning"
761+
TESTENV testenv/testSdfUsdcVersioning
762+
EXPECTED_RETURN_CODE 0
763+
ENV
764+
PXR_USDC_EMIT_DEPRECATION_WARNINGS=1
765+
)
766+
endif()

0 commit comments

Comments
 (0)