]> granicus.if.org Git - strace/blob - tests/printstrn-umoven-peekdata.c
Update copyright headers
[strace] / tests / printstrn-umoven-peekdata.c
1 /*
2  * Test PTRACE_PEEKDATA-based printstrn/umoven.
3  *
4  * Copyright (c) 2017-2018 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 "test_ucopy.h"
12 #include <stdio.h>
13
14 int
15 main(int ac, char **av)
16 {
17         if (ac < 2 && test_process_vm_readv())
18                 error_msg_and_skip("process_vm_readv is available");
19
20         if (!test_ptrace_peekdata())
21                 perror_msg_and_skip("PTRACE_PEEKDATA");
22
23         test_printstrn(DEFAULT_STRLEN);
24
25         puts("+++ exited with 0 +++");
26         return 0;
27 }