strace/tests/getsid.c
Fei Jie 8bfe0d5e22 tests: add getsid.test
* tests/getsid.c: New file.
* tests/getsid.test: New test.
* tests/.gitignore: Add getsid.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add getsid.test.
2016-04-21 17:31:05 +00:00

14 lines
193 B
C

#include "tests.h"
#include <stdio.h>
#include <unistd.h>
int
main(void)
{
pid_t pid = getpid();
printf("getsid(%d) = %d\n", pid, getsid(pid));
puts("+++ exited with 0 +++");
return 0;
}