[Lldb-commits] [lldb] r156918 - /lldb/trunk/test/functionalities/alias/TestAliases.py
Filipe Cabecinhas
me at filcab.net
Wed May 16 08:07:07 PDT 2012
Author: filcab
Date: Wed May 16 10:07:07 2012
New Revision: 156918
URL: http://llvm.org/viewvc/llvm-project?rev=156918&view=rev
Log:
Cleanup after functionalities/alias/TestAliases.py
This test is run after TestAbbreviations and was making runCmd("h") fail
in that test, on the second tested architecture (two commands would be
avilable for "h": "help" and "hello").
Later I'm sending a patch for review to add some information to the error
message for that case.
Modified:
lldb/trunk/test/functionalities/alias/TestAliases.py
Modified: lldb/trunk/test/functionalities/alias/TestAliases.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/alias/TestAliases.py?rev=156918&r1=156917&r2=156918&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/alias/TestAliases.py (original)
+++ lldb/trunk/test/functionalities/alias/TestAliases.py Wed May 16 10:07:07 2012
@@ -28,6 +28,23 @@
patterns = [ "Current executable set to .*a.out" ])
+ def cleanup():
+ self.runCmd('command unalias hello', check=False)
+ self.runCmd('command unalias python', check=False)
+ self.runCmd('command unalias pp', check=False)
+ self.runCmd('command unalias alias', check=False)
+ self.runCmd('command unalias unalias', check=False)
+ self.runCmd('command unalias myrun', check=False)
+ self.runCmd('command unalias bp', check=False)
+ self.runCmd('command unalias bpa', check=False)
+ self.runCmd('command unalias bpi', check=False)
+ self.runCmd('command unalias bfl', check=False)
+ self.runCmd('command unalias exprf', check=False)
+ self.runCmd('command unalias exprf2', check=False)
+
+ # Execute the cleanup function during test case tear down.
+ self.addTearDownHook(cleanup)
+
self.runCmd (r'''command alias hello expr (int) printf ("\n\nHello, anybody!\n\n")''')
self.runCmd ("command alias python script")
More information about the lldb-commits
mailing list