commit a96317a79dac9d82c334e206c7c524e77f13217e Author: Hans-Christoph Steiner <h...@eds.org> Date: Wed Oct 16 18:52:36 2019 +0200
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 --- src/test/test_util.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/test_util.c b/src/test/test_util.c index 7f7e157c1..ff0247fa0 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -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 } _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits