xref: /aosp_15_r20/external/ltp/testcases/kernel/syscalls/geteuid/geteuid01.c (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1 //SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
4  * Copyright (c) Linux Test Project, 2003-2023
5  *
6  * Author: William Roske
7  * CO-PILOT: Dave Fenner
8  */
9 
10 /*\
11  *[Description]
12  *
13  * Check the basic functionality of the geteuid() system call.
14  */
15 
16 #include "tst_test.h"
17 #include "compat_tst_16.h"
18 
verify_geteuid(void)19 static void verify_geteuid(void)
20 {
21 	TST_EXP_POSITIVE(GETEUID(), "geteuid()");
22 }
23 
24 static struct tst_test test = {
25 	.test_all = verify_geteuid,
26 };
27