Android: skip tests that check UNIX user account setup

* there is no ~ or HOME in Android
* UIDs and GIDs in Android represent apps, not users, and Android apps
  cannot ever change UIDs

This should be replaced by whatever @nmathewson wants to name this stuff:
https://github.com/torproject/tor/pull/1436
This commit is contained in:
Hans-Christoph Steiner 2019-10-16 18:52:36 +02:00 committed by Nick Mathewson
parent 33a0f15b21
commit a96317a79d

View File

@ -5653,7 +5653,7 @@ test_util_touch_file(void *arg)
;
}
#ifndef _WIN32
#if !(defined(_WIN32) || defined (__ANDROID__))
static void
test_util_pwdb(void *arg)
{
@ -5725,7 +5725,7 @@ test_util_pwdb(void *arg)
tor_free(dir);
teardown_capture_of_logs();
}
#endif /* !defined(_WIN32) */
#endif /* !(defined(_WIN32) || defined (__ANDROID__)) */
static void
test_util_calloc_check(void *arg)
@ -6296,6 +6296,10 @@ test_util_map_anon_nofork(void *arg)
#define UTIL_TEST_NO_WIN(n, f) { #n, NULL, TT_SKIP, NULL, NULL }
#define UTIL_TEST_WIN_ONLY(n, f) UTIL_TEST(n, (f))
#define UTIL_LEGACY_NO_WIN(n) UTIL_TEST_NO_WIN(n, 0)
#elif defined(__ANDROID__)
#define UTIL_TEST_NO_WIN(n, f) { #n, NULL, TT_SKIP, NULL, NULL }
#define UTIL_TEST_WIN_ONLY(n, f) { #n, NULL, TT_SKIP, NULL, NULL }
#define UTIL_LEGACY_NO_WIN(n) UTIL_TEST_NO_WIN(n, 0)
#else
#define UTIL_TEST_NO_WIN(n, f) UTIL_TEST(n, (f))
#define UTIL_TEST_WIN_ONLY(n, f) { #n, NULL, TT_SKIP, NULL, NULL }