Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/stdlib Remove the cases that cause integer ov...



details:   https://anonhg.NetBSD.org/src/rev/372cfc1666fc
branches:  trunk
changeset: 766034:372cfc1666fc
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Tue Jun 14 02:45:58 2011 +0000

description:
Remove the cases that cause integer overflow on e.g. i386.

diffstat:

 tests/lib/libc/stdlib/t_strtol.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 493abf06b140 -r 372cfc1666fc tests/lib/libc/stdlib/t_strtol.c
--- a/tests/lib/libc/stdlib/t_strtol.c  Tue Jun 14 02:37:31 2011 +0000
+++ b/tests/lib/libc/stdlib/t_strtol.c  Tue Jun 14 02:45:58 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_strtol.c,v 1.4 2011/06/08 05:31:43 jruoho Exp $ */
+/*     $NetBSD: t_strtol.c,v 1.5 2011/06/14 02:45:58 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtol.c,v 1.4 2011/06/08 05:31:43 jruoho Exp $");
+__RCSID("$NetBSD: t_strtol.c,v 1.5 2011/06/14 02:45:58 jruoho Exp $");
 
 #include <atf-c.h>
 #include <errno.h>
@@ -92,8 +92,6 @@
                { "123456789",                      342391,  8, NULL    },
                { "0123456789",                     342391,  0, NULL    },
                { "0123456789",                  123456789, 10, NULL    },
-               { "0123456789",                0x123456789, 16, NULL    },
-               { "0x123456789",               0x123456789,  0, NULL    },
                { "0x75bcd15",                   123456789,  0, NULL    },
        };
 



Home | Main Index | Thread Index | Old Index