[m-rev.] diff: fix the failure of declarative_debugger/throw

Julien Fischer jfischer at opturion.com
Thu Jan 27 03:18:34 AEDT 2022


Fix the failure of declarative_debugger/throw.

tests/declarative_debugger/throw.exp2:
     Update this expected output, context line numbers have been off
     since some additional comments were added to the head of the test.

tests/declarative_debugger/throw.m:
     Document what the .exp2 file is for.

Julien.

diff --git a/tests/declarative_debugger/throw.exp2 b/tests/declarative_debugger/throw.exp2
index 4d552d8..6b2dbec 100644
--- a/tests/declarative_debugger/throw.exp2
+++ b/tests/declarative_debugger/throw.exp2
@@ -7,9 +7,9 @@ mdb> break p
  mdb> break q
   1: + stop  interface pred throw.q/1-0 (semidet)
  mdb> continue
-      E2:     C2 CALL pred throw.p/1-0 (cc_nondet) throw.m:24 (exception.m:NNNN)
+      E2:     C2 CALL pred throw.p/1-0 (cc_nondet) throw.m:29 (exception.m:NNNN)
  mdb> finish
-      E3:     C2 EXCP pred throw.p/1-0 (cc_nondet) q!;c2; throw.m:26 (exception.m:NNNN)
+      E3:     C2 EXCP pred throw.p/1-0 (cc_nondet) q!;c2; throw.m:31 (exception.m:NNNN)
  mdb> dd -d 3 -n 7
  Call p(_)
  Throws "Too big"
diff --git a/tests/declarative_debugger/throw.m b/tests/declarative_debugger/throw.m
index 951f065..9ccfcd1 100644
--- a/tests/declarative_debugger/throw.m
+++ b/tests/declarative_debugger/throw.m
@@ -3,7 +3,7 @@
  %---------------------------------------------------------------------------%
  %
  % The .exp file is for ???
-% The .exp2 file is for ???
+% The .exp2 file is for when we optimize at -O2 or less.
  % The .exp3 file is for when we optimize var saves across stack flushes.
  % The .exp4 file is .exp2 but with --delay-constructs (set by -O5).



More information about the reviews mailing list