Skip to content

Commit 51a75b7

Browse files
committed
[test] Fix test/SourceKit/CursorInfo/invalid_offset
This test was intended to catch a crash on invalid offset, but in rare cases it was failing spuriously, because the error message depends on non-deterministic behaviour. It's sufficient for this test that it doesn't crash. rdar://63187529
1 parent 4dab4c2 commit 51a75b7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
let a = 12
22

33
// rdar://problem/30346106
4-
// Invalid offset should trigger a crash.
4+
// Invalid offset should not trigger a crash.
55

66
// RUN: not %sourcekitd-test 2>&1 \
77
// RUN: -req=open %s -- %s == \
88
// RUN: -req=edit -async -offset=0 -length=200 -replace='' %s -- %s == \
9-
// RUN: -req=cursor -offset=250 %s -- %s \
10-
// RUN: | %FileCheck %s
9+
// RUN: -req=cursor -offset=250 %s -- %s
1110

1211
// rdar://problem/38162017
1312
// REQUIRES: OS=macosx
14-
15-
// CHECK: (Request Failed): Unable to resolve the start of the token

0 commit comments

Comments
 (0)