• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Copyright (c) Crackerjack Project., 2007
3  * Copyright (c) Linux Test Project, 2007-2024
4  */
5 
6 /*\
7  * [Description]
8  *
9  * Verify the basic functionality of set_tid_address() syscall.
10  */
11 
12 #include "tst_test.h"
13 #include "lapi/syscalls.h"
14 
verify_set_tid_address(void)15 static void verify_set_tid_address(void)
16 {
17 	int newtid = -1;
18 
19 	TST_EXP_VAL(tst_syscall(__NR_set_tid_address, &newtid), getpid());
20 }
21 
22 static struct tst_test test = {
23 	.test_all = verify_set_tid_address,
24 	.needs_tmpdir = 1,
25 };
26