* tests/test-flock.c (main): Treat Android like Linux.
* tests/test-openat-safer.c (main): Likewise.
+2019-01-27 Bruno Haible <bruno@clisp.org>
+
+ tests: Enable Linux specific tests on Android.
+ * tests/test-flock.c (main): Treat Android like Linux.
+ * tests/test-openat-safer.c (main): Likewise.
+
2019-01-27 Bruno Haible <bruno@clisp.org>
relocatable-prog: Use Linux code on Android.
ASSERT (fd >= 0);
ASSERT (write (fd, "hello", 5) == 5);
-#if defined __linux__
+#if defined __linux__ || defined __ANDROID__
/* Invalid operation codes are rejected by the Linux implementation and by
the gnulib replacement, but not by the Mac OS X implementation. */
ASSERT (flock (fd, LOCK_SH | LOCK_EX) == -1);
errno = 0;
ASSERT (openat (dfd, witness "/", O_RDONLY) == -1);
ASSERT (errno == ENOTDIR || errno == EISDIR || errno == EINVAL);
-#ifdef __linux__
+#if defined __linux__ || defined __ANDROID__
/* Using a bad directory is okay for absolute paths. */
fd = openat (-1, "/dev/null", O_WRONLY);
ASSERT (STDERR_FILENO < fd);