Skip to content

Commit 45bcdfe

Browse files
committed
Fixed tests so they work with the modified argument count of stepBack
1 parent 02c1bb7 commit 45bcdfe

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/test/kotlin/DebuggerTests.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DebuggerTests : DebuggerTestBase() {
2222
val beforeSnapshot = debugger.snapshot()
2323
debugger.stepInto()
2424
val stepAfter = debugger.snapshot()
25-
debugger.stepBack(1, binaryInfo)
25+
debugger.stepBack(1)
2626
assertEquals(beforeSnapshot, debugger.snapshot())
2727
debugger.stepInto()
2828
assertEquals(stepAfter, debugger.snapshot())
@@ -149,9 +149,9 @@ class DebuggerTests : DebuggerTestBase() {
149149
//val x1 = debugger.inspect(ExecutionState.ProgramCounter).pc!!
150150
debugger.continueFor(len)
151151
time += timeElapsed {
152-
debugger.stepBack(n, binaryInfo) {}
152+
debugger.stepBack(n) {}
153153
}
154-
debugger.stepBack(len - n, binaryInfo) {}
154+
debugger.stepBack(len - n) {}
155155
/*val x2 = debugger.inspect(ExecutionState.ProgramCounter).pc!!
156156
debugger.printCheckpoints(binaryInfo)
157157
assert(x1 == x2) {
@@ -199,7 +199,7 @@ class DebuggerTests : DebuggerTestBase() {
199199

200200
for (i in 0 ..< (n / stepSize)) {
201201
timings.add(timeElapsed {
202-
debugger.stepBack(stepSize, binaryInfo) {}
202+
debugger.stepBack(stepSize) {}
203203
})
204204
if (i % 10 == 0) {
205205
println("Progress $i/$n")
@@ -269,7 +269,7 @@ class DebuggerTests : DebuggerTestBase() {
269269
it.stepInto()
270270
it.checkpoints[it.checkpoints.size - 1] = null
271271
timings.add(Pair(t, timeElapsed {
272-
it.stepBack(1, binaryInfo) {}
272+
it.stepBack(1) {}
273273
}))
274274
//it.printCheckpoints()
275275

@@ -280,7 +280,7 @@ class DebuggerTests : DebuggerTestBase() {
280280
it.checkpoints[it.checkpoints.size - 1] = null
281281
t += 999
282282
timings.add(Pair(t, timeElapsed {
283-
it.stepBack(1, binaryInfo) {}
283+
it.stepBack(1) {}
284284
}))
285285
it.checkpoints[it.checkpoints.size - 1] = null
286286
//it.printCheckpoints()
@@ -317,7 +317,7 @@ class DebuggerTests : DebuggerTestBase() {
317317
//debugger.continueFor(5)
318318
debugger.step(5)
319319
debugger.printCheckpoints(binaryInfo)
320-
debugger.stepBack(1, binaryInfo)
320+
debugger.stepBack(1)
321321
debugger.step(1)
322322
debugger.close()
323323
}

src/test/kotlin/benchmarks/Benchmarks.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ class Benchmarks : DebuggerTestBase() {
7575
it.stepInto()
7676
it.checkpoints[it.checkpoints.size - 1] = null
7777
timings.add(Pair(t, timeElapsed {
78-
it.stepBack(1, binaryInfo) {}
78+
it.stepBack(1) {}
7979
}))
8080

8181
(0..30).forEach { i ->
8282
it.continueFor(1000)
8383
it.checkpoints[it.checkpoints.size - 1] = null
8484
t += 999
8585
timings.add(Pair(t, timeElapsed {
86-
it.stepBack(1, binaryInfo) {}
86+
it.stepBack(1) {}
8787
}))
8888
it.checkpoints[it.checkpoints.size - 1] = null
8989
}

0 commit comments

Comments
 (0)