[m-rev.] diff: remove dependency of builtin_call_rep on int.m line numbers
Ian MacLarty
maclarty at cs.mu.OZ.AU
Wed Apr 13 19:36:28 AEST 2005
Estimated hours taken: 0.2
Branches: main and 0.12
Remove the dependency of tests/debugger/declarative/builtin_call_rep on
the line number of the + function in the int module.
tests/debugger/declarative/Mmakefile:
Pipe the output of the builtin_call_rep test through sed to
replace line numbers in the int module with `NN'.
tests/debugger/declarative/builtin_call_rep.exp:
Expect `NN' instead of line numbers.
Index: tests/debugger/declarative/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/debugger/declarative/Mmakefile,v
retrieving revision 1.74
diff -u -r1.74 Mmakefile
--- tests/debugger/declarative/Mmakefile 12 Mar 2005 04:46:31 -0000 1.74
+++ tests/debugger/declarative/Mmakefile 13 Apr 2005 09:27:11 -0000
@@ -208,6 +208,7 @@
builtin_call_rep.out: builtin_call_rep builtin_call_rep.inp
$(MDB_STD) ./builtin_call_rep < builtin_call_rep.inp \
+ | sed 's/\"int\.m\", [0-9]\+/\"int\.m\", NN/' \
> builtin_call_rep.out 2>&1 \
|| { grep . $@ /dev/null; exit 1; }
Index: tests/debugger/declarative/builtin_call_rep.exp
===================================================================
RCS file: /home/mercury1/repository/tests/debugger/declarative/builtin_call_rep.exp,v
retrieving revision 1.1
diff -u -r1.1 builtin_call_rep.exp
--- tests/debugger/declarative/builtin_call_rep.exp 19 Nov 2004 11:54:25 -0000 1.1
+++ tests/debugger/declarative/builtin_call_rep.exp 13 Apr 2005 09:27:49 -0000
@@ -5,11 +5,11 @@
mdb> step
E2: C2 CALL func int.+/2-0 (det)
mdb> print proc_body
- proc_rep([1, 2, 3], atomic_goal_rep(det_rep, "int.m", 82, [3], builtin_call_rep/3))
+ proc_rep([1, 2, 3], atomic_goal_rep(det_rep, "int.m", NN, [3], builtin_call_rep/3))
mdb> browse proc_body
browser> cd 2
browser> ls
-atomic_goal_rep(det_rep, "int.m", 82, [3], builtin_call_rep("int", "+", [1, 2, 3]))
+atomic_goal_rep(det_rep, "int.m", NN, [3], builtin_call_rep("int", "+", [1, 2, 3]))
browser> quit
mdb> f
E3: C2 EXIT func int.+/2-0 (det)
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list