8bfe0d5e22
* 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.
14 lines
193 B
C
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;
|
|
}
|