86ff93e527
* 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.
23 lines
264 B
C
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
|