Skip to content

Commit cf0400c

Browse files
committed
fixup tests, NFCI
* for pp-trace tests: It no longer emits ``` - MacroNameTok: __GCC_HAVE_DWARF2_CFI_ASM - MacroDirective: MD_Define -- Callback: MacroDefined ``` so remove the FileCheck boundaries accounting for it. * for DebugInfo/KeyInstructions/flag.cpp: The macro has alwayd been set, but the test passed because of case sentitivity, instead allow the direct flag.
1 parent 4d77531 commit cf0400c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

clang-tools-extra/test/pp-trace/pp-trace-include.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
// CHECK-NEXT: Reason: EnterFile
4040
// CHECK-NEXT: FileType: C_User
4141
// CHECK-NEXT: PrevFID: (invalid)
42-
// CHECK: - Callback: MacroDefined
4342
// CHECK: - Callback: FileChanged
4443
// CHECK-NEXT: Loc: "<built-in>:1:1"
4544
// CHECK-NEXT: Reason: ExitFile

clang-tools-extra/test/pp-trace/pp-trace-macro.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ X
4040
// CHECK-NEXT: MacroNameTok: __STDC_EMBED_EMPTY__
4141
// CHECK-NEXT: MacroDirective: MD_Define
4242
// CHECK: - Callback: MacroDefined
43-
// CHECK: - Callback: MacroDefined
4443
// CHECK-NEXT: MacroNameTok: MACRO
4544
// CHECK-NEXT: MacroDirective: MD_Define
4645
// CHECK-NEXT: - Callback: MacroExpands

clang/test/DebugInfo/KeyInstructions/flag.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
// KEY-INSTRUCTIONS: "-gkey-instructions"
1010
// NO-KEY-INSTRUCTIONS-NOT: key-instructions
11+
12+
// Only expect one dwarf related flag.
13+
// NO-DEBUG: -fdwarf2-cfi-asm
1114
// NO-DEBUG-NOT: debug-info-kind
1215
// NO-DEBUG-NOT: dwarf
1316

0 commit comments

Comments
 (0)