1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) International Business Machines  Corp., 2005
4 *   Robbie Williamson <robbiew@us.ibm.com>
5 *
6 * Copyright (c) Wipro Technologies Ltd, 2005.  All Rights Reserved.
7 *   Prashant P Yendigeri <prashant.yendigeri@wipro.com>
8 *
9 * Copyright (c) 2022 SUSE LLC Avinesh Kumar <avinesh.kumar@suse.com>
10 */
11
12/*\
13 * [Description]
14 *
15 * Verify that getpagesize(2) returns the number of bytes in a
16 * memory page as expected.
17 */
18
19#include "tst_test.h"
20
21static void run(void)
22{
23	int pagesize_sysconf;
24
25	pagesize_sysconf = sysconf(_SC_PAGESIZE);
26	TST_EXP_VAL(getpagesize(), pagesize_sysconf);
27}
28
29static struct tst_test test = {
30	.test_all = run
31};
32