Skip to content

Commit bbd867f

Browse files
authored
Merge pull request #10570 from adrian-prantl/unbreak-testsuite
Unbreak testsuite
2 parents e2ad9dc + 695a5df commit bbd867f

7 files changed

+9
-7
lines changed

lldb/test/API/lang/swift/unknown_reference/TestSwiftUnknownReference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TestSwiftUnknownReference(lldbtest.TestBase):
2121
mydir = lldbtest.TestBase.compute_mydir(__file__)
2222

2323
def check_class(self, var_self):
24-
lldbutil.check_variable(self, var_self, num_children=2)
24+
lldbutil.check_variable(self, var_self, use_dynamic=True, num_children=2)
2525
m_base_string = var_self.GetChildMemberWithName("base_string")
2626
m_string = var_self.GetChildMemberWithName("string")
2727
lldbutil.check_variable(self, m_base_string, summary='"hello"')

lldb/test/API/lang/swift/unknown_self/TestSwiftUnknownSelf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class TestSwiftUnknownSelf(lldbtest.TestBase):
2020

2121
def check_class(self, var_self, weak):
2222
self.expect("v self", substrs=["hello", "world"])
23-
lldbutil.check_variable(self, var_self, num_children=2)
23+
# FIXME: This is inconsistent. If self is Optional, an extra
24+
# indirection is needed.
25+
lldbutil.check_variable(self, var_self, num_children=2 if weak else 1)
2426
m_base_string = var_self.GetChildMemberWithName("base_string")
2527
m_string = var_self.GetChildMemberWithName("string")
2628
# FIXME: This is inconsistent. If self is Optional, an extra

lldb/test/Shell/Settings/TestCxxFrameFormat.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int main(int argc, char const *argv[]) {
2424
#--- commands.input
2525
settings set plugin.cplusplus.display.function-name-format "${function.scope}${function.basename}"
2626
settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
27-
break set -l 3
27+
break set -l 3 -f main.cpp
2828

2929
run
3030
bt

lldb/test/Shell/Settings/TestCxxFrameFormatObjC.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main() { return bar(10); }
1717
#--- commands.input
1818
settings set plugin.cplusplus.display.function-name-format "this affects C++ only"
1919
settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
20-
break set -l 3
20+
break set -l 3 -f main.m
2121
run
2222

2323
bt

lldb/test/Shell/Settings/TestCxxFrameFormatPartialFailure.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int main(int argc, const char *argv[]) {
2222
#--- commands.input
2323
settings set plugin.cplusplus.display.function-name-format "${function.basename}${script.target:invalid_func}"
2424
settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
25-
break set -l 2
25+
break set -l 2 -f main.cpp
2626

2727
run
2828
bt

lldb/test/Shell/Settings/TestFrameFormatFunctionBasename.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int main() {
4242

4343
#--- commands.input
4444
settings set -f frame-format "custom-frame '${function.basename}'\n"
45-
break set -l 5
45+
break set -n bar
4646

4747
run
4848
bt

lldb/test/Shell/Settings/TestFrameFormatFunctionTemplateArguments.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main() { return bar(); }
3333

3434
#--- commands.input
3535
settings set -f frame-format "custom-frame '${function.template-arguments}'\n"
36-
break set -l 4
36+
break set -n func
3737

3838
run
3939
bt

0 commit comments

Comments
 (0)