@@ -25,54 +25,54 @@ def test_private_generic_type(self):
25
25
'break here for struct' , lldb .SBFileSpec ('Public.swift' ),
26
26
extra_images = ['Public' ])
27
27
# Make sure this fails without generic expression evaluation.
28
- self .expect ("e --bind-generic-types true -- self" ,
28
+ self .expect ("expr --bind-generic-types true -- self" ,
29
29
substrs = ["Couldn't realize Swift AST type of self." ],
30
30
error = True )
31
31
# Test that not binding works.
32
- self .expect ("e --bind-generic-types false -- self" ,
32
+ self .expect ("expr --bind-generic-types false -- self" ,
33
33
substrs = ["Public.StructWrapper<T>" ,
34
34
'name = "The invisible struct."' ])
35
35
# Test that the "auto" behavior also works.
36
- self .expect ("e --bind-generic-types auto -- self" ,
36
+ self .expect ("expr --bind-generic-types auto -- self" ,
37
37
substrs = ["Public.StructWrapper<T>" ,
38
38
'name = "The invisible struct."' ])
39
39
# Test that the default (should be the auto option) also works.
40
- self .expect ("e -- self" , substrs = ["Public.StructWrapper<T>" ,
40
+ self .expect ("expr -- self" , substrs = ["Public.StructWrapper<T>" ,
41
41
'name = "The invisible struct."' ])
42
42
43
43
breakpoint = target .BreakpointCreateBySourceRegex (
44
44
'break here for class' , lldb .SBFileSpec ('Public.swift' ), None )
45
45
lldbutil .continue_to_breakpoint (process , breakpoint )
46
- self .expect ("e --bind-generic-types true -- self" ,
46
+ self .expect ("expr --bind-generic-types true -- self" ,
47
47
substrs = ["Couldn't realize Swift AST type of self." ],
48
48
error = True )
49
- self .expect ("e --bind-generic-types false -- self" ,
49
+ self .expect ("expr --bind-generic-types false -- self" ,
50
50
substrs = ["Public.ClassWrapper<Private.InvisibleStruct>" ,
51
51
'name = "The invisible struct."' ])
52
- self .expect ("e --bind-generic-types auto -- self" ,
52
+ self .expect ("expr --bind-generic-types auto -- self" ,
53
53
substrs = ["Public.ClassWrapper<Private.InvisibleStruct>" ,
54
54
'name = "The invisible struct."' ])
55
- self .expect ("e -- self" ,
55
+ self .expect ("expr -- self" ,
56
56
substrs = ["Public.ClassWrapper<Private.InvisibleStruct>" ,
57
57
'name = "The invisible struct."' ])
58
58
59
59
breakpoint = target .BreakpointCreateBySourceRegex (
60
60
'break here for two generic parameters' , lldb .SBFileSpec ('Public.swift' ), None )
61
61
lldbutil .continue_to_breakpoint (process , breakpoint )
62
- self .expect ("e --bind-generic-types true -- self" ,
62
+ self .expect ("expr --bind-generic-types true -- self" ,
63
63
substrs = ["Couldn't realize Swift AST type of self." ],
64
64
error = True )
65
- self .expect ("e --bind-generic-types false -- self" ,
65
+ self .expect ("expr --bind-generic-types false -- self" ,
66
66
substrs = ["Public.TwoGenericParameters" ,
67
67
"<Private.InvisibleClass, Private.InvisibleStruct>" ,
68
68
'name = "The invisible class."' ,
69
69
"someNumber = 42" ])
70
- self .expect ("e --bind-generic-types auto -- self" ,
70
+ self .expect ("expr --bind-generic-types auto -- self" ,
71
71
substrs = ["Public.TwoGenericParameters" ,
72
72
"<Private.InvisibleClass, Private.InvisibleStruct>" ,
73
73
'name = "The invisible class."' ,
74
74
"someNumber = 42" ])
75
- self .expect ("e -- self" ,
75
+ self .expect ("expr -- self" ,
76
76
substrs = ["Public.TwoGenericParameters" ,
77
77
"<Private.InvisibleClass, Private.InvisibleStruct>" ,
78
78
'name = "The invisible class."' ,
@@ -81,24 +81,24 @@ def test_private_generic_type(self):
81
81
breakpoint = target .BreakpointCreateBySourceRegex (
82
82
'break here for three generic parameters' , lldb .SBFileSpec ('Public.swift' ), None )
83
83
lldbutil .continue_to_breakpoint (process , breakpoint )
84
- self .expect ("e --bind-generic-types true -- self" ,
84
+ self .expect ("expr --bind-generic-types true -- self" ,
85
85
substrs = ["Couldn't realize Swift AST type of self." ],
86
86
error = True )
87
- self .expect ("e --bind-generic-types false -- self" ,
87
+ self .expect ("expr --bind-generic-types false -- self" ,
88
88
substrs = ["Public.ThreeGenericParameters" ,
89
89
"<T, U, V>" ,
90
90
'name = "The invisible class."' ,
91
91
"someNumber = 42" ,
92
92
'name = "The invisible struct."' ,
93
93
"v = true" ])
94
- self .expect ("e --bind-generic-types auto -- self" ,
94
+ self .expect ("expr --bind-generic-types auto -- self" ,
95
95
substrs = ["Public.ThreeGenericParameters" ,
96
96
"<T, U, V>" ,
97
97
'name = "The invisible class."' ,
98
98
"someNumber = 42" ,
99
99
'name = "The invisible struct."' ,
100
100
"v = true" ])
101
- self .expect ("e -- self" ,
101
+ self .expect ("expr -- self" ,
102
102
substrs = ["Public.ThreeGenericParameters" ,
103
103
"<T, U, V>" ,
104
104
'name = "The invisible class."' ,
@@ -109,26 +109,26 @@ def test_private_generic_type(self):
109
109
breakpoint = target .BreakpointCreateBySourceRegex (
110
110
'break here for four generic parameters' , lldb .SBFileSpec ('Public.swift' ), None )
111
111
lldbutil .continue_to_breakpoint (process , breakpoint )
112
- self .expect ("e --bind-generic-types true -- self" ,
112
+ self .expect ("expr --bind-generic-types true -- self" ,
113
113
substrs = ["Couldn't realize Swift AST type of self." ],
114
114
error = True )
115
- self .expect ("e --bind-generic-types false -- self" ,
115
+ self .expect ("expr --bind-generic-types false -- self" ,
116
116
substrs = ["Public.FourGenericParameters" ,
117
117
"<T, U, V, W>" ,
118
118
'name = "The invisible struct."' ,
119
119
'name = "The invisible class."' ,
120
120
"someNumber = 42" ,
121
121
"v = 3 values" , "One" , "two" , "three" ,
122
122
"w = 482" ])
123
- self .expect ("e --bind-generic-types auto -- self" ,
123
+ self .expect ("expr --bind-generic-types auto -- self" ,
124
124
substrs = ["Public.FourGenericParameters" ,
125
125
"<T, U, V, W>" ,
126
126
'name = "The invisible struct."' ,
127
127
'name = "The invisible class."' ,
128
128
"someNumber = 42" ,
129
129
"v = 3 values" , "One" , "two" , "three" ,
130
130
"w = 482" ])
131
- self .expect ("e -- self" ,
131
+ self .expect ("expr -- self" ,
132
132
substrs = ["Public.FourGenericParameters" ,
133
133
"<T, U, V, W>" ,
134
134
'name = "The invisible struct."' ,
@@ -140,19 +140,19 @@ def test_private_generic_type(self):
140
140
breakpoint = target .BreakpointCreateBySourceRegex (
141
141
'break here for non-generic' , lldb .SBFileSpec ('Public.swift' ), None )
142
142
lldbutil .continue_to_breakpoint (process , breakpoint )
143
- self .expect ("e --bind-generic-types false -- self" ,
143
+ self .expect ("expr --bind-generic-types false -- self" ,
144
144
substrs = ["Could not evaluate the expression without binding generic types." ],
145
145
error = True )
146
146
147
147
breakpoint = target .BreakpointCreateBySourceRegex (
148
148
'break here for nested generic parameters' , lldb .SBFileSpec ('Public.swift' ), None )
149
149
lldbutil .continue_to_breakpoint (process , breakpoint )
150
- self .expect ("e --bind-generic-types false -- self" ,
150
+ self .expect ("expr --bind-generic-types false -- self" ,
151
151
substrs = ["Could not evaluate the expression without binding generic types." ],
152
152
error = True )
153
153
154
154
# Check that if both binding and not binding the generic type parameters fail, we report
155
155
# the "bind generic params" error message, as that's the default case that runs first.
156
- self .expect ("e --bind-generic-types auto -- self" ,
156
+ self .expect ("expr --bind-generic-types auto -- self" ,
157
157
substrs = ["Couldn't realize Swift AST type of self." ],
158
158
error = True )
0 commit comments