summaryrefslogtreecommitdiffstats
path: root/lldb/lit/SymbolFile/NativePDB
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-10-12 22:57:40 +0000
committerZachary Turner <zturner@google.com>2018-10-12 22:57:40 +0000
commit8040eea9cbdfd66b49398f40ff31bbd45f178998 (patch)
treefa533fb090e054ec59a9c94f1219eb91fd53a21d /lldb/lit/SymbolFile/NativePDB
parenta796580903a6cb3a52533fdb054bebceacada83a (diff)
downloadbcm5719-llvm-8040eea9cbdfd66b49398f40ff31bbd45f178998.tar.gz
bcm5719-llvm-8040eea9cbdfd66b49398f40ff31bbd45f178998.zip
Try to fix some failures on MacOSX with the NativePDB patch.
This adds -- before any filenames, so that /U doesn't get interpreted as a command line. It also adds better error checking, so that we don't get assertions on the failure path when a file fails to parse as a PDB. llvm-svn: 344429
Diffstat (limited to 'lldb/lit/SymbolFile/NativePDB')
-rw-r--r--lldb/lit/SymbolFile/NativePDB/disassembly.cpp4
-rw-r--r--lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp4
-rw-r--r--lldb/lit/SymbolFile/NativePDB/source-list.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/lldb/lit/SymbolFile/NativePDB/disassembly.cpp b/lldb/lit/SymbolFile/NativePDB/disassembly.cpp
index 80cd0991704..e0abf65afbd 100644
--- a/lldb/lit/SymbolFile/NativePDB/disassembly.cpp
+++ b/lldb/lit/SymbolFile/NativePDB/disassembly.cpp
@@ -1,8 +1,8 @@
// clang-format off
// Test that we can show disassembly and source.
-// RUN: clang-cl /Z7 /GS- /GR- /c %s /Fo%t.obj
-// RUN: lld-link /DEBUG /nodefaultlib /entry:main /OUT:%t.exe /PDB:%t.pdb %t.obj
+// RUN: clang-cl /Z7 /GS- /GR- /c /Fo%t.obj -- %s
+// RUN: lld-link /DEBUG /nodefaultlib /entry:main /OUT:%t.exe /PDB:%t.pdb -- %t.obj
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb -f %t.exe -s \
// RUN: %p/Inputs/disassembly.lldbinit | FileCheck %s
diff --git a/lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp b/lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp
index 8fe2ea4b9a8..5318b8e0ce3 100644
--- a/lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp
+++ b/lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp
@@ -1,8 +1,8 @@
// clang-format off
// Test that we can set simple breakpoints using PDB on any platform.
-// RUN: clang-cl /Z7 /GS- /GR- /c %s /Fo%t.obj
-// RUN: lld-link /DEBUG /nodefaultlib /entry:main /OUT:%t.exe /PDB:%t.pdb %t.obj
+// RUN: clang-cl /Z7 /GS- /GR- /c /Fo%t.obj -- %s
+// RUN: lld-link /DEBUG /nodefaultlib /entry:main /OUT:%t.exe /PDB:%t.pdb -- %t.obj
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb -f %t.exe -s \
// RUN: %p/Inputs/breakpoints.lldbinit | FileCheck %s
diff --git a/lldb/lit/SymbolFile/NativePDB/source-list.cpp b/lldb/lit/SymbolFile/NativePDB/source-list.cpp
index abd90cde9dd..b176d2b3db9 100644
--- a/lldb/lit/SymbolFile/NativePDB/source-list.cpp
+++ b/lldb/lit/SymbolFile/NativePDB/source-list.cpp
@@ -1,8 +1,8 @@
// clang-format off
// Test that we can set display source of functions.
-// RUN: clang-cl /Z7 /GS- /GR- /c %s /Fo%t.obj
-// RUN: lld-link /DEBUG /nodefaultlib /entry:main /OUT:%t.exe /PDB:%t.pdb %t.obj
+// RUN: clang-cl /Z7 /GS- /GR- /c /Fo%t.obj -- %s
+// RUN: lld-link /DEBUG /nodefaultlib /entry:main /OUT:%t.exe /PDB:%t.pdb -- %t.obj
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb -f %t.exe -s \
// RUN: %p/Inputs/source-list.lldbinit | FileCheck %s
OpenPOWER on IntegriCloud