Module Name: src Committed By: maya Date: Sun Jul 29 01:45:25 UTC 2018
Modified Files: src/tests/lib/libc/stdlib: t_posix_memalign.c Log Message: Don't require size to be a multiple of alignment. This is no longer a requirement as of C18. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/stdlib/t_posix_memalign.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/lib/libc/stdlib/t_posix_memalign.c diff -u src/tests/lib/libc/stdlib/t_posix_memalign.c:1.4 src/tests/lib/libc/stdlib/t_posix_memalign.c:1.5 --- src/tests/lib/libc/stdlib/t_posix_memalign.c:1.4 Sat Nov 7 17:35:31 2015 +++ src/tests/lib/libc/stdlib/t_posix_memalign.c Sun Jul 29 01:45:25 2018 @@ -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_TC_BODY(aligned_alloc_basic, tc) 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);