Skip to content

[5.3] Update diagnostic text in tests matching Swift PR #31384 #1144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_with_run_command(self):

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

self.runCmd("process continue")
self.expect("expression m_c",
Expand Down
2 changes: 1 addition & 1 deletion lldb/test/API/lang/swift/closure_shortcuts/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() -> Int {

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

_ = main()
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test(self):
# This is expected to fail because we can't yet import ObjC
# modules into a Swift context.
self.expect("expr -lang Swift -- Bar()", "failure",
substrs=["unresolved identifier 'Bar'"],
substrs=["cannot find 'Bar' in scope"],
error=True)
self.expect("expr -lang Swift -- [1, 2, 3]",
"context-less swift expression works",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func lambda(_ Arg : Patatino) -> Int {
}

func main() -> Int {
var LiveObj = Patatino(37) //%self.expect('language swift refcount Blah', substrs=['unresolved identifier \'Blah\''], error=True)
var LiveObj = Patatino(37) //%self.expect('language swift refcount Blah', substrs=['cannot find \'Blah\' in scope'], error=True)
var Ret : Int = lambda(LiveObj) //%self.expect('language swift refcount LiveObj', substrs=['(strong =', 'unowned =', 'weak ='])
var MyStruct = Tinky() //%self.expect('language swift refcount MyStruct', substrs=['refcount only available for class types'], error=True)
return Ret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import AA

let x: OtherType = testValue
// NOT-LOADED: use of undeclared type 'OtherType'
// NOT-LOADED: cannot find type 'OtherType' in scope
// FROM-INTERFACE: cannot convert value of type 'FromInterface' to specified type 'OtherType'
// FROM-SERIALIZED: cannot convert value of type 'FromSerialized' to specified type 'OtherType'
// INVALID: error: invalid enumeration value '{{.*}}', valid values are: {{.*}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ RUN: %lldb %t -b -o "type lookup EC" | FileCheck --check-prefix=LOOKUPEC %s
LOOKUPEC: no type was found matching 'EC'

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

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

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