Skip to content

Commit be11447

Browse files
Update diagnostic text in tests matching Swift PR llvm#31315 (#1144)
1 parent b1d2b47 commit be11447

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_with_run_command(self):
4545

4646
# should not be available in global scope
4747
self.expect("expression s_d",
48-
startstr="error: use of undeclared identifier 's_d'")
48+
startstr="error: cannot find 's_d' in scope")
4949

5050
self.runCmd("process continue")
5151
self.expect("expression m_c",

lldb/test/API/lang/swift/closure_shortcuts/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func main() -> Int {
1414

1515
return 0 //%self.expect('expr tinky.map({$0 * 2})', substrs=['[0] = 4', '[1] = 8'])
1616
//%self.expect('expr [2,4].map({$0 * 2})', substrs=['[0] = 4', '[1] = 8'])
17-
//%self.expect('expr $0', substrs=['unresolved identifier \'$0\''], error=True)
17+
//%self.expect('expr $0', substrs=['cannot find \'$0\' in scope'], error=True)
1818
}
1919

2020
_ = main()

lldb/test/API/lang/swift/expression/objc_context/TestSwiftExpressionObjCContext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test(self):
4646
# This is expected to fail because we can't yet import ObjC
4747
# modules into a Swift context.
4848
self.expect("expr -lang Swift -- Bar()", "failure",
49-
substrs=["unresolved identifier 'Bar'"],
49+
substrs=["cannot find 'Bar' in scope"],
5050
error=True)
5151
self.expect("expr -lang Swift -- [1, 2, 3]",
5252
"context-less swift expression works",

lldb/test/API/lang/swift/swift_reference_counting/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func lambda(_ Arg : Patatino) -> Int {
2424
}
2525

2626
func main() -> Int {
27-
var LiveObj = Patatino(37) //%self.expect('language swift refcount Blah', substrs=['unresolved identifier \'Blah\''], error=True)
27+
var LiveObj = Patatino(37) //%self.expect('language swift refcount Blah', substrs=['cannot find \'Blah\' in scope'], error=True)
2828
var Ret : Int = lambda(LiveObj) //%self.expect('language swift refcount LiveObj', substrs=['(strong =', 'unowned =', 'weak ='])
2929
var MyStruct = Tinky() //%self.expect('language swift refcount MyStruct', substrs=['refcount only available for class types'], error=True)
3030
return Ret

lldb/test/Shell/SwiftREPL/SwiftInterfaceForceModuleLoadMode.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import AA
2828

2929
let x: OtherType = testValue
30-
// NOT-LOADED: use of undeclared type 'OtherType'
30+
// NOT-LOADED: cannot find type 'OtherType' in scope
3131
// FROM-INTERFACE: cannot convert value of type 'FromInterface' to specified type 'OtherType'
3232
// FROM-SERIALIZED: cannot convert value of type 'FromSerialized' to specified type 'OtherType'
3333
// INVALID: error: invalid enumeration value '{{.*}}', valid values are: {{.*}}

lldb/test/Shell/SymbolFile/DWARF/debug-types-missing-signature.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ RUN: %lldb %t -b -o "type lookup EC" | FileCheck --check-prefix=LOOKUPEC %s
1515
LOOKUPEC: no type was found matching 'EC'
1616

1717
RUN: %lldb %t -b -o "print (E) 1" 2>&1 | FileCheck --check-prefix=PRINTE %s
18-
PRINTE: use of undeclared identifier 'E'
18+
PRINTE: cannot find 'E' in scope
1919

2020
RUN: %lldb %t -b -o "print (EC) 1" 2>&1 | FileCheck --check-prefix=PRINTEC %s
21-
PRINTEC: use of undeclared identifier 'EC'
21+
PRINTEC: cannot find 'EC' in scope
2222

2323
RUN: %lldb %t -b -o "target variable a e ec" | FileCheck --check-prefix=VARS %s
2424
VARS: (const (anonymous struct)) a = {}

0 commit comments

Comments
 (0)