tests: check decoding of chown32 syscall

* tests/chown32.c: New file.
* tests/chown32.test: New test.
* tests/.gitignore: Add chown32.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add chown32.test.
diff --git a/tests/.gitignore b/tests/.gitignore
index ad27043..49f20c6 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -17,6 +17,7 @@
 caps
 chmod
 chown
+chown32
 chroot
 clock_nanosleep
 clock_xettime
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0a2ac1c..0888a5a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -69,6 +69,7 @@
 	caps \
 	chmod \
 	chown \
+	chown32 \
 	chroot \
 	clock_nanosleep \
 	clock_xettime \
@@ -278,6 +279,7 @@
 	caps.test \
 	chmod.test \
 	chown.test \
+	chown32.test \
 	chroot.test \
 	clock_nanosleep.test \
 	clock_xettime.test \
diff --git a/tests/chown32.c b/tests/chown32.c
new file mode 100644
index 0000000..5e590a8
--- /dev/null
+++ b/tests/chown32.c
@@ -0,0 +1,14 @@
+#include "tests.h"
+#include <sys/syscall.h>
+
+#ifdef __NR_chown32
+
+# define SYSCALL_NR __NR_chown32
+# define SYSCALL_NAME "chown32"
+# include "xchownx.c"
+
+#else
+
+SKIP_MAIN_UNDEFINED("__NR_chown32")
+
+#endif
diff --git a/tests/chown32.test b/tests/chown32.test
new file mode 100755
index 0000000..0fa04c2
--- /dev/null
+++ b/tests/chown32.test
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Check chown32 syscall decoding.
+
+. "${srcdir=.}/init.sh"
+run_strace_match_diff -a31