From be58b42a7510e3fe204e015bcf5faa9ed35d1766 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Wed, 12 Apr 2023 11:13:25 -0700 Subject: [PATCH] [lldb] Add 'CHECK' to class-type-nullptr-deref.s test. This test previously relied on just segfaulting or not. This commit adds a CHECK statement to the test. Differential Revision: https://reviews.llvm.org/D148151 --- lldb/test/Shell/SymbolFile/DWARF/x86/class-type-nullptr-deref.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/test/Shell/SymbolFile/DWARF/x86/class-type-nullptr-deref.s b/lldb/test/Shell/SymbolFile/DWARF/x86/class-type-nullptr-deref.s index 610b458..c7aea06 100644 --- a/lldb/test/Shell/SymbolFile/DWARF/x86/class-type-nullptr-deref.s +++ b/lldb/test/Shell/SymbolFile/DWARF/x86/class-type-nullptr-deref.s @@ -2,7 +2,9 @@ # null), LLDB does not try to dereference the null pointer. # RUN: llvm-mc --triple x86_64-pc-linux %s --filetype=obj -o %t -# RUN: %lldb %t -o "target variable x" -o exit 2>&1 +# RUN: %lldb %t -o "target variable x" -o exit 2>&1 | FileCheck %s + +# CHECK: 'Unable to determine byte size.' # This tests a fix for a crash. If things are working we don't get a segfault. -- 2.7.4