Skip to content

Commit dc60c07

Browse files
[DebugInfo] Disable failing tests on watchOS
Two new tests were added in #66448, and they both fail for watchOS: 1. debug_fragment_merge.sil fails on 32 bit architectures because the offset calculation is different for those (fragments of 32 bits, instead of 64). 2. debug_fragment_merge.swift is failing for unknown reasons at this point, there is simply no SIL debug information generated for the variable "data". Since the original patch didn't change SILGen, this is not a regression.
1 parent 1980da9 commit dc60c07

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

test/IRGen/debug_fragment_merge.sil

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// RUN: %target-swift-frontend -disable-availability-checking -primary-file %s -emit-ir -disable-llvm-optzns -O -g | %FileCheck %s
22

3+
// Checking the below on 32 bit architectures would be cumbersome: each
4+
// fragment is 32 bits long, which changes the number of checks as well as the
5+
// arithmethic on the bounds of each fragment.
6+
// UNSUPPORTED: OS=watchos
7+
38
// CHECK-DAG: llvm.dbg.value{{.*}} metadata ![[VAR:[0-9]+]], metadata !DIExpression(DW_OP_LLVM_fragment, 192, 64){{.*}} !dbg ![[LOC1:[0-9]+]]
49
// CHECK-DAG: llvm.dbg.value{{.*}} metadata ![[VAR]], metadata !DIExpression(DW_OP_LLVM_fragment, 128, 64){{.*}} !dbg ![[LOC1]]
510
// CHECK-DAG: llvm.dbg.value{{.*}} metadata ![[VAR]], metadata !DIExpression(DW_OP_LLVM_fragment, 64, 64){{.*}} !dbg ![[LOC1]]

test/IRGen/debug_fragment_merge.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-swift-frontend -disable-availability-checking -primary-file %s -emit-sil -O -g | %FileCheck %s --check-prefix CHECK-SIL
22
// RUN: %target-swift-frontend -disable-availability-checking -primary-file %s -emit-ir -disable-llvm-optzns -O -g | %FileCheck %s
33

4+
// UNSUPPORTED: OS=watchos
5+
46
protocol External {
57
func use(str: String);
68
func decode<T>(_: T.Type) -> T

0 commit comments

Comments
 (0)