From: Gaius Mulley Date: Wed, 31 Jan 2024 15:44:32 +0000 (+0000) Subject: PR modula2/111627 Excess test fails with a case-preserving-case-insensitive source... X-Git-Tag: basepoints/gcc-15~1476 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fd094835a8997cdcc3d18d7d297debe1527202d;p=thirdparty%2Fgcc.git PR modula2/111627 Excess test fails with a case-preserving-case-insensitive source tree This patch renames gm2 testsuite modules whose names conflict with library modules. The conflict is not seen on case preserving case sensitive file systems. gcc/testsuite/ChangeLog: PR modula2/111627 * gm2/pim/pass/stdio.mod: Moved to... * gm2/pim/pass/teststdio.mod: ...here. * gm2/pim/run/pass/builtins.mod: Moved to... * gm2/pim/run/pass/testbuiltins.mod: ...here. * gm2/pim/run/pass/math.mod: Moved to... * gm2/pim/run/pass/testmath.mod: ...here. * gm2/pim/run/pass/math2.mod: Moved to... * gm2/pim/run/pass/testmath2.mod: ...here. Signed-off-by: Gaius Mulley --- diff --git a/gcc/testsuite/gm2/pim/pass/stdio.mod b/gcc/testsuite/gm2/pim/pass/teststdio.mod similarity index 96% rename from gcc/testsuite/gm2/pim/pass/stdio.mod rename to gcc/testsuite/gm2/pim/pass/teststdio.mod index f121a8c864ff..f67b1c7111f8 100644 --- a/gcc/testsuite/gm2/pim/pass/stdio.mod +++ b/gcc/testsuite/gm2/pim/pass/teststdio.mod @@ -16,7 +16,7 @@ with gm2; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *) -MODULE stdio ; (*!m2pim*) +MODULE teststdio ; (*!m2pim*) CONST MaxStack = 40 ; @@ -50,4 +50,4 @@ END PushOutput ; BEGIN StackWPtr := 0 ; PushOutput(write) -END stdio. +END teststdio. diff --git a/gcc/testsuite/gm2/pim/run/pass/builtins.mod b/gcc/testsuite/gm2/pim/run/pass/testbuiltins.mod similarity index 95% rename from gcc/testsuite/gm2/pim/run/pass/builtins.mod rename to gcc/testsuite/gm2/pim/run/pass/testbuiltins.mod index 1cf9fb7cb7f3..2fbea373641f 100644 --- a/gcc/testsuite/gm2/pim/run/pass/builtins.mod +++ b/gcc/testsuite/gm2/pim/run/pass/testbuiltins.mod @@ -1,4 +1,4 @@ -MODULE builtins ; (*!m2pim+gm2*) +MODULE testbuiltins ; (*!m2pim+gm2*) FROM Builtins IMPORT log10l ; FROM libc IMPORT printf, exit ; @@ -76,4 +76,4 @@ BEGIN code := 0 ; test ; exit (code) -END builtins. +END testbuiltins. diff --git a/gcc/testsuite/gm2/pim/run/pass/math.mod b/gcc/testsuite/gm2/pim/run/pass/testmath.mod similarity index 97% rename from gcc/testsuite/gm2/pim/run/pass/math.mod rename to gcc/testsuite/gm2/pim/run/pass/testmath.mod index 8eab79d294eb..19caf5768fee 100644 --- a/gcc/testsuite/gm2/pim/run/pass/math.mod +++ b/gcc/testsuite/gm2/pim/run/pass/testmath.mod @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with gm2; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *) -MODULE math ; +MODULE testmath ; IMPORT MathLib0, SMathLib0 ; FROM libc IMPORT printf, exit ; @@ -41,4 +41,4 @@ BEGIN s := 5.9 ; printf("value of SMathLib0.entier (10.0 + s) = %d (should be 15)\n", SMathLib0.entier (10.0 + s)) ; Assert(SMathLib0.entier (10.0 + s) = 15, __FILE__, __LINE__) ; -END math. +END testmath. diff --git a/gcc/testsuite/gm2/pim/run/pass/math2.mod b/gcc/testsuite/gm2/pim/run/pass/testmath2.mod similarity index 97% rename from gcc/testsuite/gm2/pim/run/pass/math2.mod rename to gcc/testsuite/gm2/pim/run/pass/testmath2.mod index 3dd270997af1..483372dcee18 100644 --- a/gcc/testsuite/gm2/pim/run/pass/math2.mod +++ b/gcc/testsuite/gm2/pim/run/pass/testmath2.mod @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with gm2; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *) -MODULE math2 ; +MODULE testmath2 ; IMPORT MathLib0, SMathLib0 ; FROM libc IMPORT printf, exit ; @@ -41,4 +41,4 @@ BEGIN s := 5.9 ; printf("value of SMathLib0.entier (10.0 + s) = %d (should be 15)\n", SMathLib0.entier (10.0 + s)) ; Assert(SMathLib0.entier (s + 10.0) = 15, __FILE__, __LINE__) ; -END math2. +END testmath2.