From 0b977787374349328a21af0deade30d534cf3978 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 18 May 2022 23:40:38 +0100 Subject: fixed gcc loader/linker errors --- .../tor/0002-disable-wildcard-escaping-test_patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 repo/system/tor/0002-disable-wildcard-escaping-test_patch (limited to 'repo/system/tor/0002-disable-wildcard-escaping-test_patch') diff --git a/repo/system/tor/0002-disable-wildcard-escaping-test_patch b/repo/system/tor/0002-disable-wildcard-escaping-test_patch new file mode 100644 index 0000000..ee4f280 --- /dev/null +++ b/repo/system/tor/0002-disable-wildcard-escaping-test_patch @@ -0,0 +1,25 @@ +This will only fail on aarch64 and s390x, for some reason. +--- a/src/test/test_util.c ++++ b/src/test/test_util.c +@@ -4633,21 +4633,6 @@ test_util_glob(void *ptr) + TEST("file1"PATH_SEPARATOR"*"); + EXPECT_EMPTY(); + +-#ifndef _WIN32 +- // test wildcard escaping +- TEST("\\*"); +- EXPECT_EMPTY(); +- +- if (getuid() != 0) { +- // test forbidden directory, if we're not root. +- // (Root will be able to see this directory anyway.) +- tor_asprintf(&pattern, "%s"PATH_SEPARATOR"*"PATH_SEPARATOR"*", dirname); +- results = tor_glob(pattern); +- tor_free(pattern); +- tt_assert(!results); +- } +-#endif /* !defined(_WIN32) */ +- + #undef TEST + #undef EXPECT + #undef EXPECT_EMPTY -- cgit v1.2.1