[llvm-branch-commits] [llvm] 13cbdad - [PATCH] Make source-interleave-prefix test case compatible with llvm-test

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 3 01:16:09 PDT 2022


Author: Konrad Kleine
Date: 2022-05-03T10:10:13+02:00
New Revision: 13cbdadf32c5bba647136f51a2fd7ce4d0488bde

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

LOG: [PATCH] Make source-interleave-prefix test case compatible with llvm-test

llvm-test runs test from a directory that's not the upstream one, and that leads
to some false positive. Workaround this by forcing the current working
directory.

Added: 
    

Modified: 
    llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
index 746add22f96e5..8b28b877e3724 100644
--- a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
+++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
@@ -11,7 +11,7 @@
 
 ; RUN: sed -e "s,SRC_COMPDIR,./Inputs,g" %p/Inputs/source-interleave.ll > %t-relative-path.ll
 ; RUN: llc -o %t-relative-path.o -filetype=obj -mtriple=x86_64-pc-linux %t-relative-path.ll
-; RUN: llvm-objdump --prefix myprefix --source %t-relative-path.o 2>&1 | \
+; RUN: mkdir -p %t0 && cd %t0 && llvm-objdump --prefix myprefix --source %t-relative-path.o 2>&1 | \
 ; RUN:   FileCheck %s --check-prefix=CHECK-BROKEN-PREFIX -DFILE=%t-relative-path.o -DPREFIX=. -DCOMPDIR=/Inputs
 ; CHECK-BROKEN-PREFIX: warning: '[[FILE]]': failed to find source [[PREFIX]][[COMPDIR]]{{[/\\]}}source-interleave-x86_64.c
 


        


More information about the llvm-branch-commits mailing list