Module Name: src
Committed By: gsutre
Date: Thu Sep 5 09:01:27 UTC 2013
Modified Files:
src/tests/include/sys: t_cdefs.c
Log Message:
Fix two tests for typefit: constants larger than LLONG_MAX
do not fit in a signed long long.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/include/sys/t_cdefs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/include/sys/t_cdefs.c
diff -u src/tests/include/sys/t_cdefs.c:1.2 src/tests/include/sys/t_cdefs.c:1.3
--- src/tests/include/sys/t_cdefs.c:1.2 Fri Mar 23 23:12:28 2012
+++ src/tests/include/sys/t_cdefs.c Thu Sep 5 09:01:27 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: t_cdefs.c,v 1.2 2012/03/23 23:12:28 matt Exp $ */
+/* $NetBSD: t_cdefs.c,v 1.3 2013/09/05 09:01:27 gsutre Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_cdefs.c,v 1.2 2012/03/23 23:12:28 matt Exp $");
+__RCSID("$NetBSD: t_cdefs.c,v 1.3 2013/09/05 09:01:27 gsutre Exp $");
#include <atf-c.h>
#include <sys/types.h>
@@ -206,8 +206,8 @@ ATF_TC_BODY(stypefit, tc)
CHECK(signed long long, -1, 0);
CHECK(signed long long, 1, 0);
CHECK(signed long long, 0x7fffffffffffffffLL, 0);
- CHECK(signed long long, 0x8000000000000000LL, 0);
- CHECK(signed long long, 0xffffffffffffffffLL, 0);
+ CHECK(signed long long, 0x8000000000000000LL, 1);
+ CHECK(signed long long, 0xffffffffffffffffLL, 1);
#undef CHECK
}