[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A test for an old patch to gawk
From: |
Aharon Robbins |
Subject: |
Re: A test for an old patch to gawk |
Date: |
Thu, 18 Dec 2008 20:59:12 +0200 |
Hi. Thanks for this. It's added and will show up in the stable CVS soon.
Arnold
> Date: Tue, 25 Nov 2008 18:30:16 +0100
> From: Stepan Kasal <address@hidden>
> To: address@hidden
> Subject: A test for an old patch to gawk
>
> Hello,
> attached please find a patch introducing test for the "sticky
> quote bug" fixed by the Sep 22, 2007 change.
> I found that sleeping in our Fedora tree.
>
> Have a nice day,
> Stepan Kasal
>
> --opJtzjQTFsWo+cga
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: attachment; filename="gawk-test-lc_num1.patch"
>
> 2008-11-25 Stepan Kasal <address@hidden>
>
> * lc_num1.awk, lc_num1.ok: Test that the quote modifier in
> printf is not sticky.
> * Makefile.am: Add it.
> * Gentests: Allow _ in test names.
>
> --- test/Makefile.am.ulitest 2005-07-26 20:07:43.000000000 +0200
> +++ test/Makefile.am 2007-09-27 10:48:51.000000000 +0200
> @@ -305,6 +305,8 @@
> intprec.ok \
> iobug1.awk \
> iobug1.ok \
> + lc_num1.awk \
> + lc_num1.ok \
> leaddig.awk \
> leaddig.ok \
> leadnl.awk \
> @@ -674,7 +676,7 @@
> fordel forsimp fsbs fsspcoln fsrs fstabplus funsemnl funsmnam funstack
> getline \
> getline2 getline3 getlnbuf getnr2tb getnr2tm gsubasgn gsubtest \
> gsubtst2 gsubtst3 gsubtst4 gsubtst5 gsubtst6 hex hsprint inputred
> intest intformat \
> - intprec iobug1 leaddig leadnl litoct longsub longwrds manglprm math
> membug1 \
> + intprec iobug1 lc_num1 leaddig leadnl litoct longsub longwrds manglprm
> math membug1 \
> messages minusstr mmap8k mtchi18n nasty nasty2 negexp nested nfldstr \
> nfneg nfset nlfldsep nlinstr nlstrina noeffect nofile nofmtch noloop1 \
> noloop2 nonl noparms nors nulrsend numindex numsubstr octsub ofmt \
> @@ -772,6 +774,12 @@
> extend-msg-end:
> @echo "======== Done with gawk extension tests ========"
>
> +lc_num1:
> + @echo $@
> + @[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; \
> + AWKPATH=$(srcdir) $(AWK) --posix -f address@hidden >_$@ 2>&1 || echo
> EXIT CODE: $$? >>_$@
> + @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
> +
>
> # This test is a PITA because increasingly, /tmp is getting
> # mounted noexec. So, we'll test it locally. Sigh.
> --- /dev/null 1970-01-01 00:00:00 +0000
> +++ test/lc_num1.ok 2007-09-27 10:47:26.000000000 +0200
> @@ -0,0 +1 @@
> +1,000,000 1000000
> --- /dev/null 1970-01-01 00:00:00 +0000
> +++ test/lc_num1.awk 2007-09-27 10:47:26.000000000 +0200
> @@ -0,0 +1,4 @@
> +# Bug reported by Ulrich Drepper.
> +BEGIN {
> + printf("%'d %d\n", 1000000, 1000000)
> +}
> --- test/Gentests.ulitest 2005-05-11 17:28:17.000000000 +0200
> +++ test/Gentests 2007-09-27 10:47:26.000000000 +0200
> @@ -45,7 +45,7 @@
> next
> }
>
> -/^[a-zA-Z][a-zA-Z0-9]*:/ {
> +/^[a-zA-Z_][a-zA-Z0-9_]*:/ {
> # remember all targets from Makefile.am
> sub(/:.*/,"")
> targets[$0]
>
> --opJtzjQTFsWo+cga--
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: A test for an old patch to gawk,
Aharon Robbins <=