* 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.
swap
symlink
symlinkat
+sync
sync_file_range
sync_file_range2
sysinfo
swap \
symlink \
symlinkat \
+ sync \
sync_file_range \
sync_file_range2 \
sysinfo \
swap.test \
symlink.test \
symlinkat.test \
+ sync.test \
sync_file_range.test \
sync_file_range2.test \
sysinfo.test \
--- /dev/null
+#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
--- /dev/null
+#!/bin/sh
+
+# Check sync syscall decoding.
+
+. "${srcdir=.}/init.sh"
+run_strace_match_diff -a7