Author: Jonas Devlieghere Date: 2019-11-05T12:33:21-08:00 New Revision: 2abcf44f4c91a326d1f4513fb5c25fec51c6ca66
URL: https://github.com/llvm/llvm-project/commit/2abcf44f4c91a326d1f4513fb5c25fec51c6ca66 DIFF: https://github.com/llvm/llvm-project/commit/2abcf44f4c91a326d1f4513fb5c25fec51c6ca66.diff LOG: [Reproducer] Add test case for expression evaluation Added: lldb/test/Shell/Reproducer/Functionalities/Inputs/ExpressionEvaluation.in lldb/test/Shell/Reproducer/Functionalities/TestExpressionEvaluation.test Modified: Removed: ################################################################################ diff --git a/lldb/test/Shell/Reproducer/Functionalities/Inputs/ExpressionEvaluation.in b/lldb/test/Shell/Reproducer/Functionalities/Inputs/ExpressionEvaluation.in new file mode 100644 index 000000000000..8887c201d92e --- /dev/null +++ b/lldb/test/Shell/Reproducer/Functionalities/Inputs/ExpressionEvaluation.in @@ -0,0 +1,10 @@ +breakpoint set -f foo.cpp -l 11 +run +p foo +next +p Foo(2, 3.33); +p $1 +p foo = Foo(3, 4.44); +p foo +cont +reproducer generate diff --git a/lldb/test/Shell/Reproducer/Functionalities/TestExpressionEvaluation.test b/lldb/test/Shell/Reproducer/Functionalities/TestExpressionEvaluation.test new file mode 100644 index 000000000000..d826a47cb245 --- /dev/null +++ b/lldb/test/Shell/Reproducer/Functionalities/TestExpressionEvaluation.test @@ -0,0 +1,18 @@ +# UNSUPPORTED: system-windows, system-freebsd + +# This tests that expression evaluation continues to work when replaying a +# reproducer. + +# RUN: rm -rf %t.repro +# RUN: %clangxx_host %S/Inputs/foo.cpp -g -o %t.out + +# RUN: %lldb -x -b -s %S/Inputs/ExpressionEvaluation.in --capture --capture-path %t.repro %t.out | FileCheck %s +# RUN: %lldb --replay %t.repro | FileCheck %s + +# CHECK: stop reason = breakpoint 1.1 +# CHECK: (Foo) $0 = (m_i = 0, m_d = 0) +# CHECK: stop reason = step over +# CHECK: (Foo) $1 = (m_i = 2, m_d = 3) +# CHECK: (Foo) $1 = (m_i = 2, m_d = 3) +# CHECK: (Foo) $2 = (m_i = 3, m_d = 4) +# CHECK: (Foo) $3 = (m_i = 3, m_d = 4) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits