diff --git a/source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp b/source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp index 0e1fd00c6a..2cc4d7ccf4 100644 --- a/source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp +++ b/source/MaterialXTest/MaterialXGenGlsl/GenGlsl.cpp @@ -119,18 +119,16 @@ TEST_CASE("GenShader: Bind Light Shaders", "[genglsl]") REQUIRE_NOTHROW(mx::HwShaderGenerator::bindLightShader(*spotLightShader, 66, context)); } +#ifdef MATERIALX_BUILD_BENCHMARK_TESTS TEST_CASE("GenShader: Performance Test", "[genglsl]") { -#ifdef MATERIALX_BUILD_BENCHMARK_TESTS mx::GenContext context(mx::GlslShaderGenerator::create()); BENCHMARK("Load documents, validate and generate shader") { return GenShaderUtil::shaderGenPerformanceTest(context); }; -#else - SUCCEED("Performance tests are disabled"); -#endif } +#endif enum class GlslType {