[windows] XFAIL crash-in-user-code test in MSVC 2017

See also #33383 where this problem is better explained.

MSVC doesn't seem to trigger the exception code when no frame pointers are generated. The only thing missing would be for interpreted code to have a more informative crash message.

Add a new LLVM Lit feature with the value of the VisualStudioVersion environment variable (it seems to not change even for minor versions, so it is an easy way to figure out the 2017/2019 difference, even if updates are applied).

Use the new feature in a XFAIL check in the test.
This commit is contained in:
Daniel Rodríguez Troitiño
2020-09-30 14:58:45 -07:00
parent 48b73fdabf
commit fcb51dc947
2 changed files with 8 additions and 2 deletions

View File

@@ -8,6 +8,8 @@
// UNSUPPORTED: OS=tvos
// UNSUPPORTED: OS=watchos
// XFAIL: MSVC_VER=15.0
// CHECK: Stack dump:
// CHECK-NEXT: Program arguments:
// CHECK-NEXT: Swift version