This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][Ada] Fix testsuite/27476


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]