strace/tests/gettid.c
Dmitry V. Levin d9e54d6e3e tests: check decoding of gettid syscall
* tests/gettid.c: New file.
* tests/.gitignore: Add gettid.
* tests/Makefile.am (check_PROGRAMS): Likewise.
* tests/gen_tests.in (gettid): New entry.
2017-04-11 04:04:37 +00:00

13 lines
196 B
C

#include "tests.h"
#include <stdio.h>
#include <unistd.h>
#include <asm/unistd.h>
int
main(void)
{
printf("gettid() = %ld\n", syscall(__NR_gettid));
puts("+++ exited with 0 +++");
return 0;
}