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 Don't require size to be a multiple of...
details: https://anonhg.NetBSD.org/src/rev/fb060f5c1bec
branches: trunk
changeset: 363459:fb060f5c1bec
user: maya <maya%NetBSD.org@localhost>
date: Sun Jul 29 01:45:25 2018 +0000
description:
Don't require size to be a multiple of alignment. This is no longer a
requirement as of C18.
diffstat:
tests/lib/libc/stdlib/t_posix_memalign.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 0ccebcd1b1ae -r fb060f5c1bec tests/lib/libc/stdlib/t_posix_memalign.c
--- a/tests/lib/libc/stdlib/t_posix_memalign.c Sat Jul 28 20:26:13 2018 +0000
+++ b/tests/lib/libc/stdlib/t_posix_memalign.c Sun Jul 29 01:45:25 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_posix_memalign.c,v 1.4 2015/11/07 17:35:31 nros Exp $ */
+/* $NetBSD: t_posix_memalign.c,v 1.5 2018/07/29 01:45:25 maya Exp $ */
/*-
* Copyright (c) 2008 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_posix_memalign.c,v 1.4 2015/11/07 17:35:31 nros Exp $");
+__RCSID("$NetBSD: t_posix_memalign.c,v 1.5 2018/07/29 01:45:25 maya Exp $");
#include <atf-c.h>
@@ -121,9 +121,6 @@
ATF_REQUIRE_EQ_MSG((align[i] - 1) & align[i], 0,
"aligned_alloc: success when alignment was not "
"a power of 2");
- ATF_REQUIRE_EQ_MSG(size[i] % align[i], 0,
- "aligned_alloc: success when size was not an "
- "integer multiple of alignment");
ATF_REQUIRE_EQ_MSG(((intptr_t)p) & (align[i] - 1), 0,
"p = %p", p);
free(p);
Home |
Main Index |
Thread Index |
Old Index