Skip to content

Commit ff145a2

Browse files
committed
[test] Couple of coverage test tweaks
1 parent 49f28c8 commit ff145a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Profiler/coverage_errors.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ func test8(_ b: Bool) -> Int { // CHECK-NEXT: [[@LINE]]:30 {{.*}} : 0
241241
if b { // CHECK-NEXT: [[@LINE]]:10 {{.*}} : 2
242242
return 1
243243
} // CHECK-NEXT: [[@LINE]]:6 {{.*}} : (1 - 2)
244-
} // CHECK: [[@LINE]]:4 {{.*}} : (1 - 2)
244+
} // CHECK-NEXT: [[@LINE]]:4 {{.*}} : (1 - 2)
245245
return 0
246-
}
246+
} // CHECK-NEXT: }
247247

248248
// Test coverage with nested do-catches
249249
// CHECK-LABEL: sil_coverage_map {{.*}} "$s15coverage_errors5test9SiyF"
@@ -362,6 +362,8 @@ func test19() throws -> Int { // CHECK-NEXT: [[@LINE]]:29 -> [[@LINE+
362362
return x // CHECK-NEXT: [[@LINE-1]]:41 -> [[@LINE]]:11 : ((0 - 1) - 2)
363363
} // CHECK-NEXT: }
364364

365+
// TODO: We probably ought to include the function call in the non-throwing
366+
// regions here (rdar://118524386).
365367
// CHECK-LABEL: sil_coverage_map {{.*}} "$s15coverage_errors6test20yyKF"
366368
func test20() throws { // CHECK-NEXT: [[@LINE]]:22 -> [[@LINE+5]]:2 : 0
367369
takesInts(

0 commit comments

Comments
 (0)