summaryrefslogtreecommitdiff
path: root/repo/tor/0002-disable-wildcard-escaping-test_patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/tor/0002-disable-wildcard-escaping-test_patch
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/tor/0002-disable-wildcard-escaping-test_patch')
-rw-r--r--repo/tor/0002-disable-wildcard-escaping-test_patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/repo/tor/0002-disable-wildcard-escaping-test_patch b/repo/tor/0002-disable-wildcard-escaping-test_patch
new file mode 100644
index 0000000..ee4f280
--- /dev/null
+++ b/repo/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