(root)/
strace-6.5/
tests-mx32/
printpath-umovestr-peekdata.c
       1  /*
       2   * Test PTRACE_PEEKDATA-based printpath/umovestr.
       3   *
       4   * Copyright (c) 2017-2021 Dmitry V. Levin <ldv@strace.io>
       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_printpath(sizeof(long) * 4);
      24  
      25  	puts("+++ exited with 0 +++");
      26  	return 0;
      27  }