strace/tests/sync.c
Fei Jie 86ff93e527 tests: add sync.test
* tests/sync.c: New file.
* tests/sync.test: New test.
* tests/.gitignore: Add sync.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add sync.test.
2016-04-26 10:29:58 +00:00

23 lines
264 B
C

#include "tests.h"
#include <sys/syscall.h>
#ifdef __NR_sync
# include <stdio.h>
# include <unistd.h>
int
main(void)
{
printf("sync() = %ld\n", syscall(__NR_sync));
puts("+++ exited with 0 +++");
return 0;
}
#else
SKIP_MAIN_UNDEFINED("__NR_sync")
#endif