소스 검색

skip debugname part adding test for 1.3 (#1167)

Young Kim 7 년 전
부모
커밋
1a5cb0fbe2
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tools/clang/unittests/HLSL/CompilerTest.cpp

+ 2 - 0
tools/clang/unittests/HLSL/CompilerTest.cpp

@@ -2131,6 +2131,8 @@ TEST_F(CompilerTest, CompileWhenWorksThenAddRemovePrivate) {
 }
 
 TEST_F(CompilerTest, CompileThenAddCustomDebugName) {
+  // container builders prior to 1.3 did not support adding debug name parts
+  if (m_ver.SkipDxilVersion(1, 3)) return;
   CComPtr<IDxcCompiler> pCompiler;
   CComPtr<IDxcOperationResult> pResult;
   CComPtr<IDxcBlobEncoding> pSource;