aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2007-12-09 21:00:12 +0000
committerDavid Schultz <das@FreeBSD.org>2007-12-09 21:00:12 +0000
commit1b12fbb195606caf20629e516c27ade0d520c99e (patch)
treef5600b13cf449f852512d1cb4adaeaf1c5b8f4a1
parenta468cce785316b25fb285f1cc5016ae9034f5315 (diff)
downloadsrc-1b12fbb195606caf20629e516c27ade0d520c99e.tar.gz
src-1b12fbb195606caf20629e516c27ade0d520c99e.zip
Remove some test instrumentation. (The Symbol.map changes broke it anyway.)
Notes
Notes: svn path=/head/; revision=174495
-rw-r--r--lib/libc/stdio/vfscanf.c4
-rw-r--r--lib/libc/stdio/vfwscanf.c4
-rw-r--r--tools/regression/lib/libc/stdio/test-scanfloat.c4
3 files changed, 0 insertions, 12 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c
index 452eb65ece26..9d724eb25867 100644
--- a/lib/libc/stdio/vfscanf.c
+++ b/lib/libc/stdio/vfscanf.c
@@ -98,8 +98,6 @@ static const u_char *__sccl(char *, const u_char *);
static int parsefloat(FILE *, char *, char *);
#endif
-int __scanfdebug = 0;
-
__weak_reference(__vfscanf, vfscanf);
/*
@@ -781,8 +779,6 @@ literal:
float res = strtof(buf, &p);
*va_arg(ap, float *) = res;
}
- if (__scanfdebug && p - buf != width)
- abort();
nassigned++;
}
nread += width;
diff --git a/lib/libc/stdio/vfwscanf.c b/lib/libc/stdio/vfwscanf.c
index b6d97e3194f0..8a62a8f7124d 100644
--- a/lib/libc/stdio/vfwscanf.c
+++ b/lib/libc/stdio/vfwscanf.c
@@ -99,8 +99,6 @@ __FBSDID("$FreeBSD$");
static int parsefloat(FILE *, wchar_t *, wchar_t *);
#endif
-extern int __scanfdebug;
-
#define INCCL(_c) \
(cclcompl ? (wmemchr(ccls, (_c), ccle - ccls) == NULL) : \
(wmemchr(ccls, (_c), ccle - ccls) != NULL))
@@ -705,8 +703,6 @@ literal:
float res = wcstof(buf, &p);
*va_arg(ap, float *) = res;
}
- if (__scanfdebug && p - buf != width)
- abort();
nassigned++;
}
nread += width;
diff --git a/tools/regression/lib/libc/stdio/test-scanfloat.c b/tools/regression/lib/libc/stdio/test-scanfloat.c
index ef6faaebfe00..b768ed7548b2 100644
--- a/tools/regression/lib/libc/stdio/test-scanfloat.c
+++ b/tools/regression/lib/libc/stdio/test-scanfloat.c
@@ -42,8 +42,6 @@ __FBSDID("$FreeBSD$");
#define eq(type, a, b) _eq(type##_EPSILON, (a), (b))
static int _eq(long double epsilon, long double a, long double b);
-extern int __scanfdebug;
-
int
main(int argc, char *argv[])
{
@@ -57,8 +55,6 @@ main(int argc, char *argv[])
buf[0] = '\0';
assert(setlocale(LC_NUMERIC, ""));
- __scanfdebug = 1;
-
/*
* Various tests for normalized numbers
*/