]> granicus.if.org Git - strace/blob - tests/answer.c
eff794b86ad04851152963955abb1af282dd696e
[strace] / tests / answer.c
1 /*
2  * Check decoding of fault injected exit_group syscall.
3  *
4  * Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org>
5  * All rights reserved.
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9
10 #include "tests.h"
11 #include <unistd.h>
12 #include <asm/unistd.h>
13
14 int
15 main(void)
16 {
17         static const kernel_ulong_t answer =
18                 (kernel_ulong_t) 0xbadc0ded0000002aULL;
19
20         syscall(__NR_exit_group, answer);
21         syscall(__NR_exit, answer);
22
23         return 1;
24 }