summaryrefslogtreecommitdiffstats
path: root/tools/test-server
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-server')
-rw-r--r--tools/test-server/test-server-main.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/test-server/test-server-main.cpp b/tools/test-server/test-server-main.cpp
index c00cab428..5161fa03a 100644
--- a/tools/test-server/test-server-main.cpp
+++ b/tools/test-server/test-server-main.cpp
@@ -446,12 +446,7 @@ SlangResult TestServer::_executeUnitTest(const JSONRPCCall& call)
unitTestContext.workDirectory = "";
unitTestContext.enabledApis = RenderApiFlags(args.enabledApis);
unitTestContext.executableDirectory = m_exeDirectory.getBuffer();
- // When using test server, any validation warning printed from the backend
- // gets misinterpreted as the result from the test.
- // This is due to the limitation that Slang RPC implementation expects only
- // one time communication. Set enableDebugLayers to false to avoid Vulkan
- // test failures when running on debug using test server.
- unitTestContext.enableDebugLayers = false;
+ unitTestContext.enableDebugLayers = args.enableDebugLayers;
auto testCount = testModule->getTestCount();
SLANG_ASSERT(testIndex >= 0 && testIndex < testCount);