1 /*
2 * Copyright (c) 2015-2019 The strace developers.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8 #include "tests.h"
9 #include <assert.h>
10 #include <stdio.h>
11 #include <unistd.h>
12 #include "scno.h"
13
14 int
15 main(void)
16 {
17 assert(syscall(__NR_times, 0x42) == -1);
18 printf("times(0x42) = -1 EFAULT (%m)\n");
19 puts("+++ exited with 0 +++");
20
21 return 0;
22 }