[gjs: 9/14] tests: Adjust expected debugger output



commit fbd03385b5acd785b61dede79013adfe65f39b42
Author: Philip Chimento <philip chimento gmail com>
Date:   Tue Jul 24 22:45:33 2018 -0400

    tests: Adjust expected debugger output
    
    Apparently the debugger now places the last instruction site at the
    beginning of the newline after the final source line; not at the end of
    the final source line as it did in SpiderMonkey 52. Additionally it
    places an extra instruction offset there, that we have to step past to
    complete the program. This requires a couple of adjustments to the
    debugger scripts and expected output.
    
    See #161.

 installed-tests/debugger/next.debugger        | 1 +
 installed-tests/debugger/next.debugger.output | 4 +++-
 installed-tests/debugger/step.debugger        | 1 +
 installed-tests/debugger/step.debugger.output | 4 +++-
 4 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/installed-tests/debugger/next.debugger b/installed-tests/debugger/next.debugger
index 33fba962..beb49d5d 100644
--- a/installed-tests/debugger/next.debugger
+++ b/installed-tests/debugger/next.debugger
@@ -6,3 +6,4 @@ n
 n
 n
 n
+n
diff --git a/installed-tests/debugger/next.debugger.output b/installed-tests/debugger/next.debugger.output
index 9174da2e..bb76e341 100644
--- a/installed-tests/debugger/next.debugger.output
+++ b/installed-tests/debugger/next.debugger.output
@@ -17,7 +17,9 @@ a() at next.debugger.js:5:0
 toplevel at next.debugger.js:11:0
 db> n
 toplevel at next.debugger.js:11:0
+db> n
+toplevel at next.debugger.js:12:0
 No value returned.
 db> n
-toplevel at next.debugger.js:11:4
+toplevel at next.debugger.js:12:0
 Program exited with code 0
diff --git a/installed-tests/debugger/step.debugger b/installed-tests/debugger/step.debugger
index 69d43e96..df197150 100644
--- a/installed-tests/debugger/step.debugger
+++ b/installed-tests/debugger/step.debugger
@@ -9,3 +9,4 @@ s
 s
 s
 s
+s
diff --git a/installed-tests/debugger/step.debugger.output b/installed-tests/debugger/step.debugger.output
index 3a0ce627..806e5e9f 100644
--- a/installed-tests/debugger/step.debugger.output
+++ b/installed-tests/debugger/step.debugger.output
@@ -27,7 +27,9 @@ a() at step.debugger.js:4:0
 toplevel at step.debugger.js:10:0
 db> s
 toplevel at step.debugger.js:10:0
+db> s
+toplevel at step.debugger.js:11:0
 No value returned.
 db> s
-toplevel at step.debugger.js:10:4
+toplevel at step.debugger.js:11:0
 Program exited with code 0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]