forked from OSchip/llvm-project
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. llvm-svn: 156918
This commit is contained in:
parent
7faf84f125
commit
4d16c4c669
|
@ -28,6 +28,23 @@ class AliasTestCase(TestBase):
|
|||
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")
|
||||
|
|
Loading…
Reference in New Issue