public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Revert "Test fscanf of long double without <stdio.h>"
@ 2024-05-24 23:25 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-05-24 23:25 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=caed1f5c0b2e31b5f4e0f21fea4b2c9ecd3b5b30
commit caed1f5c0b2e31b5f4e0f21fea4b2c9ecd3b5b30
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri May 24 16:24:49 2024 -0700
Revert "Test fscanf of long double without <stdio.h>"
This reverts commit 30a745450e01e4c6f484dc691c16a54a6ea72288.
On ppc64le, without <stdio.h>, vfscanf is used and with <stdio.h>
__isoc23_vfscanfieee128 is used. I am reverting this since it doesn't
work on all targets.
Diff:
---
stdio-common/Makefile | 1 -
stdio-common/test-fscanf.c | 37 -------------------------------------
stdio-common/test-fscanf.input | 1 -
3 files changed, 39 deletions(-)
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 274bece0a2..6bc972af1a 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -193,7 +193,6 @@ tests := \
scanf18 \
scanf19 \
temptest \
- test-fscanf \
test-fseek \
test-fwrite \
test-popen \
diff --git a/stdio-common/test-fscanf.c b/stdio-common/test-fscanf.c
deleted file mode 100644
index f2c4250b51..0000000000
--- a/stdio-common/test-fscanf.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/* Test fscanf of long double without <stdio.h>.
- Copyright (C) 2024 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#include <string.h>
-
-struct FILE;
-extern struct FILE *stdin;
-extern int fscanf (struct FILE *, const char *, ...);
-
-int
-main (void)
-{
- int n, i;
- long double x;
- char name[50];
- n = fscanf (stdin, "%d%Lf%s", &i, &x, name);
-
- if (n != 3 || i != 25 || x != 24.5 || strcmp (name, "thompson"))
- return 1;
-
- return 0;
-}
diff --git a/stdio-common/test-fscanf.input b/stdio-common/test-fscanf.input
deleted file mode 100644
index 69322cc51a..0000000000
--- a/stdio-common/test-fscanf.input
+++ /dev/null
@@ -1 +0,0 @@
-25 24.5 thompson
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-24 23:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-24 23:25 [glibc] Revert "Test fscanf of long double without <stdio.h>" H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).