forked from OSchip/llvm-project
Fix single whitespace before breakpoint filename in some tests due to r183932.
llvm-svn: 184104
This commit is contained in:
parent
eb90fd1c3b
commit
36e5a7db2a
|
@ -122,10 +122,10 @@ class AbbreviationsTestCase(TestBase):
|
|||
self.expect("break list",
|
||||
substrs = ["1: name = 'product', locations = 1",
|
||||
"2: name = 'sum', locations = 1",
|
||||
"3: file ='main.cpp', line = 32, locations = 1"])
|
||||
"3: file = 'main.cpp', line = 32, locations = 1"])
|
||||
self.expect("br cl -l 32 -f main.cpp",
|
||||
startstr = "1 breakpoints cleared:",
|
||||
substrs = ["3: file ='main.cpp', line = 32, locations = 1"])
|
||||
substrs = ["3: file = 'main.cpp', line = 32, locations = 1"])
|
||||
|
||||
# Add a future to terminate the current process being debugged.
|
||||
#
|
||||
|
|
|
@ -96,7 +96,7 @@ class AliasTestCase(TestBase):
|
|||
startstr = "Current breakpoints:",
|
||||
substrs = [ "1: name = 'foo', locations = 1",
|
||||
"2: name = 'sum', locations = 1",
|
||||
"3: file ='main.cpp', line = 32, locations = 1" ])
|
||||
"3: file = 'main.cpp', line = 32, locations = 1" ])
|
||||
|
||||
self.runCmd ("bpa -s python 1 -o 'print frame; print bp_loc'")
|
||||
self.runCmd ("bpa -s command 2 -o 'frame variable b'")
|
||||
|
|
|
@ -62,12 +62,12 @@ class BreakpointCommandTestCase(TestBase):
|
|||
|
||||
# The breakpoint list now only contains breakpoint 1.
|
||||
self.expect("breakpoint list", "Breakpoints 1 & 2 created",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 1" % self.line,
|
||||
"2: file ='main.c', line = %d, locations = 1" % self.line] )
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.line,
|
||||
"2: file = 'main.c', line = %d, locations = 1" % self.line] )
|
||||
|
||||
self.expect("breakpoint list -f", "Breakpoints 1 & 2 created",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 1" % self.line,
|
||||
"2: file ='main.c', line = %d, locations = 1" % self.line],
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.line,
|
||||
"2: file = 'main.c', line = %d, locations = 1" % self.line],
|
||||
patterns = ["1.1: .+at main.c:%d, .+unresolved, hit count = 0" % self.line,
|
||||
"2.1: .+at main.c:%d, .+unresolved, hit count = 0" % self.line])
|
||||
|
||||
|
@ -143,13 +143,13 @@ class BreakpointCommandTestCase(TestBase):
|
|||
|
||||
# The breakpoint list now only contains breakpoint 1.
|
||||
self.expect("breakpoint list -f", "Breakpoint 1 exists",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 1, resolved = 1" %
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 1, resolved = 1" %
|
||||
self.line,
|
||||
"hit count = 1"])
|
||||
|
||||
# Not breakpoint 2.
|
||||
self.expect("breakpoint list -f", "No more breakpoint 2", matching=False,
|
||||
substrs = ["2: file ='main.c', line = %d, locations = 1, resolved = 1" %
|
||||
substrs = ["2: file = 'main.c', line = %d, locations = 1, resolved = 1" %
|
||||
self.line])
|
||||
|
||||
# Run the program again, with breakpoint 1 remaining.
|
||||
|
|
|
@ -41,7 +41,7 @@ class BreakpointLocationsTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 3 locations.
|
||||
self.expect("breakpoint list -f", "Breakpoint locations shown correctly",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 3" % self.line],
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 3" % self.line],
|
||||
patterns = ["where = a.out`func_inlined .+unresolved, hit count = 0",
|
||||
"where = a.out`main .+\[inlined\].+unresolved, hit count = 0"])
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ class NumberOfThreadsTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 3 locations.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 1" % self.line])
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.line])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
|
|
@ -44,7 +44,7 @@ class BreakpointAfterJoinTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 location.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
|
|
@ -86,7 +86,7 @@ class CreateDuringStepTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 location.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
|
|
@ -43,7 +43,7 @@ class ExitDuringBreakpointTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 location.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
|
|
@ -86,7 +86,7 @@ class ExitDuringStepTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 location.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
|
|
@ -43,7 +43,7 @@ class MultipleBreakpointTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 location.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
|
|
@ -98,7 +98,7 @@ class ThreadStateTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 breakpoint with 1 location.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 1" % self.break_1])
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
@ -139,7 +139,7 @@ class ThreadStateTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 breakpoints with 1 location.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 1" % self.break_1])
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
@ -188,7 +188,7 @@ class ThreadStateTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 breakpoints with 1 location.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 1" % self.break_1])
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
@ -232,7 +232,7 @@ class ThreadStateTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 breakpoints with 1 location.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 1" % self.break_1])
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
@ -286,8 +286,8 @@ class ThreadStateTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 2 breakpoints with 1 location each.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.c', line = %d, locations = 1" % self.break_1,
|
||||
"2: file ='main.c', line = %d, locations = 1" % self.break_2])
|
||||
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1,
|
||||
"2: file = 'main.c', line = %d, locations = 1" % self.break_2])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
|
|
@ -49,10 +49,10 @@ class ThreadExitTestCase(TestBase):
|
|||
|
||||
# The breakpoint list should show 1 locations.
|
||||
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
|
||||
substrs = ["1: file ='main.cpp', line = %d, locations = 1" % self.break_1,
|
||||
"2: file ='main.cpp', line = %d, locations = 1" % self.break_2,
|
||||
"3: file ='main.cpp', line = %d, locations = 1" % self.break_3,
|
||||
"4: file ='main.cpp', line = %d, locations = 1" % self.break_4])
|
||||
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.break_1,
|
||||
"2: file = 'main.cpp', line = %d, locations = 1" % self.break_2,
|
||||
"3: file = 'main.cpp', line = %d, locations = 1" % self.break_3,
|
||||
"4: file = 'main.cpp', line = %d, locations = 1" % self.break_4])
|
||||
|
||||
# Run the program.
|
||||
self.runCmd("run", RUN_SUCCEEDED)
|
||||
|
|
|
@ -105,7 +105,7 @@ class ArrayTypesTestCase(TestBase):
|
|||
# Sanity check the print representation of breakpoint.
|
||||
bp = str(breakpoint)
|
||||
self.expect(bp, msg="Breakpoint looks good", exe=False,
|
||||
substrs = ["file ='main.c'",
|
||||
substrs = ["file = 'main.c'",
|
||||
"line = %d" % self.line,
|
||||
"locations = 1"])
|
||||
self.expect(bp, msg="Breakpoint is not resolved as yet", exe=False, matching=False,
|
||||
|
@ -139,7 +139,7 @@ class ArrayTypesTestCase(TestBase):
|
|||
# The breakpoint should be resolved by now.
|
||||
bp = str(breakpoint)
|
||||
self.expect(bp, "Breakpoint looks good and is resolved", exe=False,
|
||||
substrs = ["file ='main.c'",
|
||||
substrs = ["file = 'main.c'",
|
||||
"line = %d" % self.line,
|
||||
"locations = 1"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue