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