From 6b4896fddb04d34b0a890bc161fec613f40a7dfc Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Tue, 14 Dec 2010 17:48:26 +0000 Subject: [PATCH] Change the golden output so that merely evaluating an existing persistent variable does not result in a newly created persistent variable. The old one is returned, instead. llvm-svn: 121775 --- .../persistent_variables/TestPersistentVariables.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py b/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py index b1ff042f2d23..47d1631d7c23 100644 --- a/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py +++ b/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py @@ -34,8 +34,12 @@ class PersistentVariablesTestCase(TestBase): # (int) $2 = 14 self.expect("expression $2", - startstr = "(int) $3 = 14") - # (int) $3 = 14 + startstr = "(int) $2 = 14") + # (int) $2 = 14 + + self.expect("expression $1", + startstr = "(int) $1 = 8") + # (int) $1 = 8 if __name__ == '__main__':