Fix for test errors

Stefano Corsi <[email protected]> Thu, 27 Mar 2003 09:53:16 +0000
Newsgroups gmane.comp.lang.moto.devel
Organization Moto Project
Message-ID <[email protected]>
--------------Boundary-00=_SGJEBH5I3XKVC7VF4KL4
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

This little patch fixes (ehm... maybe a bit roughly) the problem with the=
 two=20
failing tests. I extimated that the moto code behaves correctly, when=20
reporting the complete file name, because this can be useful when=20
programming. So I decided to modify the test reports at runtime to reflec=
t=20
the correct path on the users' machine.
What about the patch name I found: noerr.patch. Isn't it beautiful?

This is only for reference. It is also attached in .tar.gz form.

diff -uNr moto_0_19_0/Makefile.in moto_0_19_0.noerr/Makefile.in
--- moto_0_19_0/Makefile.in     Tue Mar  4 20:59:17 2003
+++ moto_0_19_0.noerr/Makefile.in       Thu Mar 27 09:39:07 2003
@@ -153,6 +153,8 @@
        @autoheader

 test:
+       @sed -e s/##MOTODIR##/$$(pwd | tr / %)/g tests/bf_badlineno.txt.i=
n |=20
tr %
/ > tests/bf_badlineno.txt
+       @sed -e s/##MOTODIR##/$$(pwd | tr / %)/g tests/bf_macro_err.txt.i=
n |=20
tr %
/ > tests/bf_macro_err.txt
        cd tests; test -z "mototest" || ${MAKE}; ./mototest

 local-all:
diff -uNr moto_0_19_0/tests/bf_badlineno.txt.in=20
moto_0_19_0.noerr/tests/bf_badline
no.txt.in
--- moto_0_19_0/tests/bf_badlineno.txt.in       Thu Jan  1 00:00:00 1970
+++ moto_0_19_0.noerr/tests/bf_badlineno.txt.in Thu Mar 27 09:37:42 2003
@@ -0,0 +1,2 @@
+##MOTODIR##/tests/bf_badlineno.incl:6: Illegal binary operation: <int> *=
=20
<String>
+         >>> in file included from bf_badlineno.moto:1
diff -uNr moto_0_19_0/tests/bf_macro_err.txt.in=20
moto_0_19_0.noerr/tests/bf_macro_e
rr.txt.in
--- moto_0_19_0/tests/bf_macro_err.txt.in       Thu Jan  1 00:00:00 1970
+++ moto_0_19_0.noerr/tests/bf_macro_err.txt.in Thu Mar 27 09:37:42 2003
@@ -0,0 +1,11 @@
+##MOTODIR##/tests/bf_macro_err.incl:5: Illegal binary operation: <String=
> *=20
<bool
ean>
+         >>> in file included from bf_macro_err.moto:2
+##MOTODIR##/tests/bf_macro_err.lib:2: Illegal binary operation: <int> +=20
<boolean>
+         >>> in macro BAD_MACRO called from bf_macro_err.moto:5
+##MOTODIR##/tests/bf_macro_err.moto:1: Variable 's' not declared before =
used
+         >>> in macro ANOTHER_BAD_MACRO called from bf_macro_err.moto:7
+##MOTODIR##/tests/bf_macro_err.lib:5: No such function: atoi(<int>)
+         >>> in macro BAD_MACRO_W_ARGS(1) called from bf_macro_err.moto:=
9
+##MOTODIR##/tests/bf_macro_err.lib:5: No such function: atoi(<boolean>)
+         >>> in macro BAD_MACRO_W_ARGS(1) called from=20
##MOTODIR##/tests/bf_macro_
err.lib:8
+         >>> in macro BAD_MACRO_THAT_CALLS_ANOTHER_BAD_MACRO called from=
=20
bf_macro
_err.moto:10

--------------Boundary-00=_SGJEBH5I3XKVC7VF4KL4
Content-Type: application/x-tgz;
  name="noerr.patch.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="noerr.patch.tar.gz"

H4sIAJLIgj4AA+2W70+bQBjH+7b8FU+sRl2lHLSAxaUpUzPdrE1qs70kV7haspMzFPbT/e/jUGO1
BToXs5g8n5Bc4Z577rnv84U0EiyOW9c08We1l4LohFhWp0YIMS3LXhwlbUs3a8S2OsTstNt2Fqcb
hmnVgLxYRQuk84TGALWAfWW8JK5q/pUShNMpqOl5DFciER7x9K5HtAH9wqYhZ60wWnzeiqRbFmcV
VVWLVtbHKYOBFLcDBnHMrqPb2Q/SVprNZnna+niW5ksNG0jXaXcdcre03wdVN9t7FjTlsA/9vgL1
Pk0TMWM0YLECCiRsnjhKs96fswBUBnOt0RgMx8Oj01GjoW1u7lx/C+AGkhg02NrVLvMFc20y9SY0
4GHEItFKvify9HnUVhbXKwh61jZX1I+FJ9+8km0eBWWH9IPbuYN8APUnbEgR5c0G3NzA5q+B+/H4
9wG0tPvnUgwufMpVyrmjrG528eGXe1QYu2SEwsi8tx9oBKADIU5+gd61SYEtyhMtmMR2OsaDScge
ySyyZ0iDNBf7siJfGPncsRw45ZxdUg6TMKLxDxDXLKZJKCIH3oZR0oM38PYiicPospd1HaDX60Gm
kvQsyBRpkPlgGosreJRdHsnRq8RfskSJEk9ji8V/Gvls8VcmqhJf14vVf0iYq2+Wqn+numzARAjO
aLRGBx52yDtgVBbCw4ljVLugubqIPA+8c4+8gXs4GkL21vHiaszKam5t48AnGod0kh1we74NkUgg
YD6ncZZ6wqYiZpBmn5/lQtzz4fjkeOStW5C9ljxZm84FzFN/BtM08m9loYkId3JtdksE8T577uj9
xY6+W1FJ918rue/OM6pZY+P9sqzjE3fsHbpnZxfe3zZAJ8r//jOAIAiCIAiCIAiCIAiCIAiCIAiC
IAiCvFr+AFqc3YIAKAAA

--------------Boundary-00=_SGJEBH5I3XKVC7VF4KL4--