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

52 lines
1017 B
C++

// Purpose:
// Check that \DexExpectWatchValue applies no penalties when expected
// program states are found.
//
// UNSUPPORTED: system-darwin
//
//
// RUN: %dexter_regression_test -- %s | FileCheck %s
// CHECK: expect_program_state.cpp:
int GCD(int lhs, int rhs)
{
if (rhs == 0)
return lhs; // DexLabel('check')
return GCD(rhs, lhs % rhs);
}
int main()
{
return GCD(111, 259);
}
/*
DexExpectProgramState({
'frames': [
{
'location': {
'lineno': 'check'
},
'watches': {
'lhs': '37', 'rhs': '0'
}
},
{
'watches': {
'lhs': {'value': '111'}, 'rhs': {'value': '37'}
}
},
{
'watches': {
'lhs': {'value': '259'}, 'rhs': {'value': '111'}
}
},
{
'watches': {
'lhs': {'value': '111'}, 'rhs': {'value': '259'}
}
}
]
})
*/