[Lldb-commits] [lldb] r157077 - /lldb/trunk/test/settings/TestSettings.py

Johnny Chen johnny.chen at apple.com
Fri May 18 15:00:05 PDT 2012


Thanks!

On May 18, 2012, at 2:35 PM, Filipe Cabecinhas <me at filcab.net> wrote:

> Author: filcab
> Date: Fri May 18 16:35:43 2012
> New Revision: 157077
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=157077&view=rev
> Log:
> Cleanup a custom thread-format so we don't fail TestLoadUnload when running the
> test suite for two architectures (the full path to d.c would appear).
> 
> Modified:
>    lldb/trunk/test/settings/TestSettings.py
> 
> Modified: lldb/trunk/test/settings/TestSettings.py
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/TestSettings.py?rev=157077&r1=157076&r2=157077&view=diff
> ==============================================================================
> --- lldb/trunk/test/settings/TestSettings.py (original)
> +++ lldb/trunk/test/settings/TestSettings.py Fri May 18 16:35:43 2012
> @@ -115,6 +115,14 @@
>         exe = os.path.join(os.getcwd(), "a.out")
>         self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
> 
> +        def cleanup():
> +            format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name}${function.pc-offset}}}{ at ${line.file.basename}:${line.number}}\n"
> +            self.runCmd("settings set frame-format %s" % format_string, check=False)
> +            self.runCmd('command unalias hello', check=False)
> +
> +        # Execute the cleanup function during test case tear down.
> +        self.addTearDownHook(cleanup)
> +
>         format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}`${function.name-with-args}{${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}\n"
>         self.runCmd("settings set frame-format %s" % format_string)
> 
> 
> 
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits




More information about the lldb-commits mailing list