From 8b5749da2a05b5ea30a40ba95a32f8e3fb0535f8 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 27 Jul 2010 18:13:53 +0000 Subject: [PATCH] Update tests to not rely on input file's absolute path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109521 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC++/2009-07-15-LineNumbers.cpp | 2 +- test/FrontendC++/2010-07-23-DeclLoc.cpp | 4 ++-- test/FrontendObjC/2009-08-17-DebugInfo.m | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/FrontendC++/2009-07-15-LineNumbers.cpp b/test/FrontendC++/2009-07-15-LineNumbers.cpp index a8eda77e4a7..e1cc81f40f7 100644 --- a/test/FrontendC++/2009-07-15-LineNumbers.cpp +++ b/test/FrontendC++/2009-07-15-LineNumbers.cpp @@ -1,7 +1,7 @@ // This is a regression test on debug info to make sure that we can // print line numbers in asm. // RUN: %llvmgcc -S -O0 -g %s -o - | \ -// RUN: llc --disable-fp-elim -O0 -relocation-model=pic | grep { 2009-07-15-LineNumbers.cpp:25$} +// RUN: llc --disable-fp-elim -O0 -relocation-model=pic | grep {2009-07-15-LineNumbers.cpp:25$} #include diff --git a/test/FrontendC++/2010-07-23-DeclLoc.cpp b/test/FrontendC++/2010-07-23-DeclLoc.cpp index 84c63b10b93..c72de3b3362 100644 --- a/test/FrontendC++/2010-07-23-DeclLoc.cpp +++ b/test/FrontendC++/2010-07-23-DeclLoc.cpp @@ -63,13 +63,13 @@ public: _TEXT_text_section(0, 0, __null), _dsym_path(__null), _dylib_current_version(0), _dylib_compatibility_version(0) {} }; template class TExtendedMachOHeader {}; -# 16 "/decl_should_be_here.hpp" +# 16 "decl_should_be_here.hpp" template void extract_dwarf_data_from_header(TExtendedMachOHeader& header, TRawSymbolOwnerData& symbol_owner_data, TAddressRelocator* address_relocator) {} struct CSCppSymbolOwnerHashFunctor { size_t operator()(const CSCppSymbolOwner& symbol_owner) const { -# 97 "/wrong_place_for_decl.cpp" +# 97 "wrong_place_for_decl.cpp" } }; template CSCppSymbolOwnerData* create_symbol_owner_data_arch_specific(CSCppSymbolOwner* symbol_owner, const char* dsym_path) { diff --git a/test/FrontendObjC/2009-08-17-DebugInfo.m b/test/FrontendObjC/2009-08-17-DebugInfo.m index 2c72e9532ce..8ed7c24dc13 100644 --- a/test/FrontendObjC/2009-08-17-DebugInfo.m +++ b/test/FrontendObjC/2009-08-17-DebugInfo.m @@ -5,7 +5,7 @@ // RUN: %link %t.o -o %t.exe -framework Foundation // RUN: echo {break randomFunc\n} > %t.in // RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | \ -// RUN: grep {Breakpoint 1 at 0x.*: file 2009-08-17-DebugInfo.m, line 21} +// RUN: grep {Breakpoint 1 at 0x.*: file .*2009-08-17-DebugInfo.m, line 21} // XTARGET: darwin @interface MyClass {