diff options
author | phessler <> | 2015-03-15 07:26:27 +0000 |
---|---|---|
committer | phessler <> | 2015-03-15 07:26:27 +0000 |
commit | 2d03a31822d6ba85150d11917bead7662359a267 (patch) | |
tree | b507f38d7260d249cbcb632ae147a3439c1a8fc9 /src | |
parent | 34179c9283d86d84f6d8e6b8de839766069ffb1b (diff) | |
download | openbsd-2d03a31822d6ba85150d11917bead7662359a267.tar.gz openbsd-2d03a31822d6ba85150d11917bead7662359a267.tar.bz2 openbsd-2d03a31822d6ba85150d11917bead7662359a267.zip |
fix for regression test for strtol(). it failed (the wrong kind of
fail), on 64-bit systems.
tested on 64-bit (amd64) and 32-bit (sparc).
OK claudio@ deraadt@
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libc/strtol/strtoltest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libc/strtol/strtoltest.c b/src/regress/lib/libc/strtol/strtoltest.c index a90977a87d..17b73340ad 100644 --- a/src/regress/lib/libc/strtol/strtoltest.c +++ b/src/regress/lib/libc/strtol/strtoltest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: strtoltest.c,v 1.2 2014/09/19 12:32:08 schwarze Exp $ */ | 1 | /* $OpenBSD: strtoltest.c,v 1.3 2015/03/15 07:26:27 phessler Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2012 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2012 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -42,7 +42,7 @@ struct strtol_test strtol_tests[] = { | |||
42 | {"-080000000", -2147483648L, '\0', 16, 0}, | 42 | {"-080000000", -2147483648L, '\0', 16, 0}, |
43 | {"deadbeefdeadbeef", LONG_MAX, '\0', 16, ERANGE}, | 43 | {"deadbeefdeadbeef", LONG_MAX, '\0', 16, ERANGE}, |
44 | {"deadzbeef", 57005L, 'z', 16, 0}, | 44 | {"deadzbeef", 57005L, 'z', 16, 0}, |
45 | {"-quitebig", LONG_MIN, '\0', 32, ERANGE}, | 45 | {"-quitebigmchuge", LONG_MIN, '\0', 32, ERANGE}, |
46 | {"zzz", 46655L, '\0', 36, 0}, | 46 | {"zzz", 46655L, '\0', 36, 0}, |
47 | {"1234567890", 0L, '1', 37, EINVAL}, | 47 | {"1234567890", 0L, '1', 37, EINVAL}, |
48 | {"1234567890", 0L, '1', 123, EINVAL}, | 48 | {"1234567890", 0L, '1', 123, EINVAL}, |