Files
clang-p2996/debuginfo-tests/dexter/feature_tests/commands/penalty/expect_program_state.cpp
Tom Weaver b6d2212f52 [Dexter] Add support for Windows to regression test suite.
This patch addresses the issue of the regression suite not running on windows
hardware. It changes the following things:

* add new dexter regression suite command to lit.cfg.py that makes use of the
  clang-cl_vs2015 and dbgend builder and debuggers.

* sprinkle the new regressionsuite command through the feature and tool tests
  that require them.

* mark certain problem tests on windows

* [revert fix] fixed darwin regression test failures by adding unsupported line
  for system-darwin to command tests.

There's a couple of tests that fail (or pass) in unexpected ways on Windows.

Problem tests are both the penalty and perfect expect_watch_type.cpp tests.
Type information reporting parity is not possible a this time in dexter due to
the nature of how different debuggers report type information back to their users.

reviewers: Orlando

Differential Revision: https://reviews.llvm.org/D76609
2020-03-31 10:18:12 +01:00

36 lines
662 B
C++

// Purpose:
// Check that \DexExpectProgramState correctly applies a penalty when
// an expected program state is never found.
//
// UNSUPPORTED: system-darwin
//
// RUN: not %dexter_regression_test -- %s | FileCheck %s
// CHECK: expect_program_state.cpp:
int GCD(int lhs, int rhs)
{
if (rhs == 0) // DexLabel('check')
return lhs;
return GCD(rhs, lhs % rhs);
}
int main()
{
return GCD(111, 259);
}
/*
DexExpectProgramState({
'frames': [
{
'location': {
'lineno': 'check'
},
'watches': {
'lhs': '0', 'rhs': '0'
}
},
]
})
*/