[llvm] deb7809 - [DirectX][ObjectYAML] Attempt to fix flaky PRIVPart.yaml (#206278)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 27 16:00:34 PDT 2026


Author: Vladislav Dzhidzhoev
Date: 2026-06-27T23:00:30Z
New Revision: deb78093799999bee43408c26994eadfccac966a

URL: https://github.com/llvm/llvm-project/commit/deb78093799999bee43408c26994eadfccac966a
DIFF: https://github.com/llvm/llvm-project/commit/deb78093799999bee43408c26994eadfccac966a.diff

LOG: [DirectX][ObjectYAML] Attempt to fix flaky PRIVPart.yaml (#206278)

This test was meant to round-trip YAML twice, to ensure correct
processing of non-4-byte-padded PRIV section.
However, second invocation of yaml2obj had wrong arguments (it was
reading from test file instead of stdin). Fix that.

Also, round-trips were split into several RUN lines, to make it clear on
which line an error occurs if the test is still flaky.

Added: 
    

Modified: 
    llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml b/llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml
index 0d429a1381413..b7324c28e930d 100644
--- a/llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml
+++ b/llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml
@@ -2,7 +2,9 @@
 ## part size is not a multiple of 4. The pipeline is run twice to ensure obj2yaml
 ## output with a non-multiple-of-4 FileSize can be fed back through yaml2obj.
 
-# RUN: yaml2obj %s 2>&1 | obj2yaml 2>&1 | yaml2obj %s 2>&1 | obj2yaml 2>&1 | FileCheck %s
+# RUN: yaml2obj %s -o %t.dxbc
+# RUN: obj2yaml %t.dxbc | yaml2obj -o %t2.dxbc
+# RUN: obj2yaml %t2.dxbc | FileCheck %s
 
 --- !dxcontainer
 Header:


        


More information about the llvm-commits mailing list