Re: Fix for test errors
David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Thu, 27 Mar 2003 14:30:49 -0500
| Newsgroups | gmane.comp.lang.moto.devel |
|---|---|
| Message-ID | <[email protected]> |
Heheh ... I don't know that actually fixing motopp is that much more
difficult a task than what you do here :)
-Dave
On Thursday, March 27, 2003, at 04:53 AM, Stefano Corsi wrote:
> This little patch fixes (ehm... maybe a bit roughly) the problem with
> the two
> failing tests. I extimated that the moto code behaves correctly, when
> reporting the complete file name, because this can be useful when
> programming. So I decided to modify the test reports at runtime to
> reflect
> 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.in |
> tr %
> / > tests/bf_badlineno.txt
> + @sed -e s/##MOTODIR##/$$(pwd | tr / %)/g
> tests/bf_macro_err.txt.in |
> 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
> 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> *
> <String>
> + >>> in file included from bf_badlineno.moto:1
> diff -uNr moto_0_19_0/tests/bf_macro_err.txt.in
> 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> *
> <bool
> ean>
> + >>> in file included from bf_macro_err.moto:2
> +##MOTODIR##/tests/bf_macro_err.lib:2: Illegal binary operation: <int>
> +
> <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
> ##MOTODIR##/tests/bf_macro_
> err.lib:8
> + >>> in macro BAD_MACRO_THAT_CALLS_ANOTHER_BAD_MACRO called
> from
> bf_macro
> _err.moto:10
> <noerr.patch.tar.gz>