summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/tools/llvm-dwp/X86/invalid_cu_index.test3
-rw-r--r--llvm/test/tools/llvm-dwp/X86/missing_tu_index.test3
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-dwp/X86/invalid_cu_index.test b/llvm/test/tools/llvm-dwp/X86/invalid_cu_index.test
new file mode 100644
index 00000000000..6fc96b2a1a3
--- /dev/null
+++ b/llvm/test/tools/llvm-dwp/X86/invalid_cu_index.test
@@ -0,0 +1,3 @@
+RUN: not llvm-dwp %p/../Inputs/invalid_cu_index/x.dwp -o %t 2>&1 | FileCheck %s
+
+CHECK: error: Failed to parse cu_index
diff --git a/llvm/test/tools/llvm-dwp/X86/missing_tu_index.test b/llvm/test/tools/llvm-dwp/X86/missing_tu_index.test
new file mode 100644
index 00000000000..99f5253e8b3
--- /dev/null
+++ b/llvm/test/tools/llvm-dwp/X86/missing_tu_index.test
@@ -0,0 +1,3 @@
+RUN: not llvm-dwp %p/../Inputs/missing_tu_index/x.dwp -o %t 2>&1 | FileCheck %s
+
+CHECK: error: Failed to parse tu_index
OpenPOWER on IntegriCloud