teak-llvm/lldb/packages/Python/lldbsuite/test/commands/statistics/basic/main.c
Raphael Isemann 29872606d2 [lldb] Restructure test folders to match LLDB command hierarchy
Summary:
As discussed on lldb-dev, this patch moves some LLDB tests into a hierarchy that more closely
resembles the commands we use in the LLDB interpreter. This patch should only move tests
that use the command interpreter and shouldn't touch any tests that primarily test the SB API.

Reviewers: #lldb, jfb, JDevlieghere

Reviewed By: #lldb, JDevlieghere

Subscribers: dexonsmith, arphaman, JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D67033

llvm-svn: 370605
2019-09-01 09:12:37 +00:00

19 lines
796 B
C

// Test that the lldb command `statistics` works.
int main(void) {
int patatino = 27;
//%self.expect("statistics disable", substrs=['need to enable statistics before disabling'], error=True)
//%self.expect("statistics enable")
//%self.expect("statistics enable", substrs=['already enabled'], error=True)
//%self.expect("expr patatino", substrs=['27'])
//%self.expect("statistics disable")
//%self.expect("statistics dump", substrs=['expr evaluation successes : 1', 'expr evaluation failures : 0'])
//%self.expect("frame var", substrs=['27'])
//%self.expect("statistics enable")
//%self.expect("frame var", substrs=['27'])
//%self.expect("statistics disable")
//%self.expect("statistics dump", substrs=['frame var successes : 1', 'frame var failures : 0'])
return 0;
}