Re: [PATCH] Fix PowerPC testsuite not to look for *.c*~ files

2017-11-16 Thread Segher Boessenkool
Hi!

On Wed, Nov 15, 2017 at 07:51:24PM -0500, Michael Meissner wrote:
> I was back-porting some changes to the IBM Advance Toolchain branch, and I was
> doing this via creating a patch file, and applying the patch output.  I tend 
> to
> always use the -b option to patch to create a backup file.  I had new 
> failures,
> since the new files the bfp, dfp, and vfu sub-directories created an empty
> *.c.~1~ file, and the .exp tried to run it as a test.  Since we don't have any
> non C files in those directories, I changed the test to just *.exp.  I 
> verified
> that we get the same number of failures, successes, etc. with the patch 
> applied
> and without it being applied.  Can I check this into the trunk?
> 
> [gcc/testsuite]
> 2017-11-15  Michael Meissner  
> 
>   * gcc.target/powerpc/bfp/bfp.exp: Look for *.c files, not *.c*
>   files to prevent ~ files from getting recognized.
>   * gcc.target/powerpc/dfp/dfp.exp: Likewise.
>   * gcc.target/powerpc/vsu/vsu.exp: Likewise.

And these are the only three testsuites with this problem (in powerpc/), and
we do not have any *.c* files other than *.c .  Okay for trunk, thanks!


Segher


[PATCH] Fix PowerPC testsuite not to look for *.c*~ files

2017-11-15 Thread Michael Meissner
I was back-porting some changes to the IBM Advance Toolchain branch, and I was
doing this via creating a patch file, and applying the patch output.  I tend to
always use the -b option to patch to create a backup file.  I had new failures,
since the new files the bfp, dfp, and vfu sub-directories created an empty
*.c.~1~ file, and the .exp tried to run it as a test.  Since we don't have any
non C files in those directories, I changed the test to just *.exp.  I verified
that we get the same number of failures, successes, etc. with the patch applied
and without it being applied.  Can I check this into the trunk?

[gcc/testsuite]
2017-11-15  Michael Meissner  

* gcc.target/powerpc/bfp/bfp.exp: Look for *.c files, not *.c*
files to prevent ~ files from getting recognized.
* gcc.target/powerpc/dfp/dfp.exp: Likewise.
* gcc.target/powerpc/vsu/vsu.exp: Likewise.

-- 
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meiss...@linux.vnet.ibm.com, phone: +1 (978) 899-4797
Index: gcc/testsuite/gcc.target/powerpc/bfp/bfp.exp
===
--- gcc/testsuite/gcc.target/powerpc/bfp/bfp.exp(revision 254782)
+++ gcc/testsuite/gcc.target/powerpc/bfp/bfp.exp(working copy)
@@ -34,7 +34,7 @@ load_lib torture-options.exp
 # Initialize.
 dg-init
 
-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c*]] "" $DEFAULT_CFLAGS
+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" $DEFAULT_CFLAGS
 
 # All done.
 dg-finish
Index: gcc/testsuite/gcc.target/powerpc/dfp/dfp.exp
===
--- gcc/testsuite/gcc.target/powerpc/dfp/dfp.exp(revision 254782)
+++ gcc/testsuite/gcc.target/powerpc/dfp/dfp.exp(working copy)
@@ -33,7 +33,7 @@ load_lib torture-options.exp
 # Initialize.
 dg-init
 
-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c*]] "" $DEFAULT_CFLAGS
+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" $DEFAULT_CFLAGS
 
 # All done.
 dg-finish
Index: gcc/testsuite/gcc.target/powerpc/vsu/vsu.exp
===
--- gcc/testsuite/gcc.target/powerpc/vsu/vsu.exp(revision 254782)
+++ gcc/testsuite/gcc.target/powerpc/vsu/vsu.exp(working copy)
@@ -34,7 +34,7 @@ load_lib torture-options.exp
 # Initialize.
 dg-init
 
-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c*]] "" $DEFAULT_CFLAGS
+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" $DEFAULT_CFLAGS
 
 # All done.
 dg-finish