[llvm] 197f305 - NFCI: update debug-names-types test to use an output file unique to the test

Krasimir Georgiev via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 08:08:26 PST 2023


Author: Krasimir Georgiev
Date: 2023-11-20T16:05:01Z
New Revision: 197f30597d086e4466687fa533d3142fa404b1fc

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

LOG: NFCI: update debug-names-types test to use an output file unique to the test

This makes it work in environments where the test is running in a write-protected
current directory. Updated similarly to other such tests, like
https://github.com/llvm/llvm-project/blob/8bd06d5b65845e5e01dd899a2deb773580460b89/llvm/test/tools/llvm-dwp/X86/absolute_paths.test#L3.

Added: 
    

Modified: 
    llvm/test/DebugInfo/X86/debug-names-types.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/DebugInfo/X86/debug-names-types.ll b/llvm/test/DebugInfo/X86/debug-names-types.ll
index 59d18f18f6f030f..fc23e604b386365 100644
--- a/llvm/test/DebugInfo/X86/debug-names-types.ll
+++ b/llvm/test/DebugInfo/X86/debug-names-types.ll
@@ -5,7 +5,7 @@
 ; RUN: llc -mtriple=x86_64 -generate-type-units -dwarf-version=5 -filetype=obj %s -o %t
 ; RUN: llvm-dwarfdump -debug-info -debug-names %t | FileCheck %s
 
-; RUN: llc -mtriple=x86_64 -generate-type-units -dwarf-version=5 -filetype=obj -split-dwarf-file=mainTypes.dwo --split-dwarf-output=mainTypes.dwo %s -o %t
+; RUN: llc -mtriple=x86_64 -generate-type-units -dwarf-version=5 -filetype=obj -split-dwarf-file=%t.mainTypes.dwo --split-dwarf-output=%t.mainTypes.dwo %s -o %t
 ; RUN: llvm-readelf --sections %t | FileCheck %s --check-prefixes=CHECK-SPLIT
 
 ; CHECK-SPLIT-NOT: .debug_names


        


More information about the llvm-commits mailing list