Skip to content

Commit 7911fb1

Browse files
authored
[lldb][test] Fix the flaky test dwp-foreign-type-units.cpp. (#98237)
Use `--match-full-lines` with FileCheck. Otherwise, the checks for `int` and `unsigned int` will match to the fields inside two `CustomType`s and FileCheck will start scanning from there, causing string not found error.
1 parent 8ab19d2 commit 7911fb1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lldb/test/Shell/SymbolFile/DWARF/x86/dwp-foreign-type-units.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// REQUIRES: lld
2-
// Is flaky on Windows.
3-
// UNSUPPORTED: system-windows
42

53
// This test will make a type that will be compiled differently into two
64
// different .dwo files in a type unit with the same type hash, but with
@@ -30,7 +28,7 @@
3028
// RUN: -o "type lookup IntegerType" \
3129
// RUN: -o "type lookup FloatType" \
3230
// RUN: -o "type lookup CustomType" \
33-
// RUN: -b %t | FileCheck %s --check-prefix=NODWP
31+
// RUN: -b %t | FileCheck %s --check-prefix=NODWP --match-full-lines
3432
// NODWP: (lldb) type lookup IntegerType
3533
// NODWP-DAG: int
3634
// NODWP-DAG: unsigned int

0 commit comments

Comments
 (0)