Files
strace/tests/answer.c
Dmitry V. Levin c6782f144a tests: change the license to GPL-2.0-or-later
strace test suite is now provided under the terms of the GNU General
Public License version 2 or later, see tests/COPYING for more details.
2018-12-10 00:00:00 +00:00

25 lines
436 B
C

/*
* Check decoding of fault injected exit_group syscall.
*
* Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org>
* All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "tests.h"
#include <unistd.h>
#include <asm/unistd.h>
int
main(void)
{
static const kernel_ulong_t answer =
(kernel_ulong_t) 0xbadc0ded0000002aULL;
syscall(__NR_exit_group, answer);
syscall(__NR_exit, answer);
return 1;
}