This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Ada] Fix testsuite/27476
- From: Arnaud Charlet <charlet at adacore dot com>
- To: Laurent GUERBY <laurent at guerby dot net>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Richard Guenther <richard dot guenther at gmail dot com>, danglin at gcc dot gnu dot org
- Date: Mon, 8 May 2006 18:30:52 +0200
- Subject: Re: [PATCH][Ada] Fix testsuite/27476
- References: <1147105612.7951.25.camel@pc.site>
> The following patch fix the problem on hpux according to Dave and was
> also tested on x86_64-linux.
>
> Ok to commit?
OK.
> 2005-05-08 Laurent GUERBY <laurent@guerby.net>
>
> PR testsuite/27476
> * ada/acats/run_all.sh: Use test -z.
>
> Index: run_all.sh
> ===================================================================
> --- run_all.sh (revision 113629)
> +++ run_all.sh (working copy)
> @@ -239,7 +239,7 @@
> target_gnatchop -c -w `ls ${test}*.a ${test}*.ada ${test}*.adt
> ${test}*.am ${test}*.dep 2> /dev/null` >> $dir/acats.log 2>&1
> main=""
> find_main
> - if [ "$main" == "" ]; then
Yes, this is definitely not proper syntax , since this is C/csh syntax, not sh
syntax.
Should be instead:
if [ "$main" = "" ]; then
> + if [ -z "$main" ]; then
Should also work fine.
Arno