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

38 lines
962 B
C++

// Purpose:
// Check that \DexExpectWatchValue applies no penalties when expected
// values are found.
//
// UNSUPPORTED: system-darwin
//
// RUN: %dexter_regression_test -- %s | FileCheck %s
// CHECK: expect_watch_value.cpp:
unsigned long Factorial(int n) {
volatile unsigned long fac = 1; // DexLabel('entry')
for (int i = 1; i <= n; ++i)
fac *= i; // DexLabel('loop')
return fac; // DexLabel('ret')
}
int main()
{
return Factorial(8);
}
/*
DexExpectWatchValue('n', '8', on_line='entry')
DexExpectWatchValue('i',
'1', '2', '3', '4', '5', '6', '7', '8',
on_line='loop')
DexExpectWatchValue('fac',
'1', '2', '6', '24', '120', '720', '5040',
on_line='loop')
DexExpectWatchValue('n', '8', on_line='loop')
DexExpectWatchValue('fac', '40320', on_line='ret')
DexExpectWatchValue('n', '8', on_line='ret')
*/