[glib/wip/2-58-cve-2021-28153: 2/5] tests: Stop using g_test_bug_base() in file tests
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/2-58-cve-2021-28153: 2/5] tests: Stop using g_test_bug_base() in file tests
- Date: Fri, 19 Mar 2021 10:42:42 +0000 (UTC)
commit 42020509ac9f0a13ced21871c7f5762f65bc142d
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Feb 24 17:34:32 2021 +0000
tests: Stop using g_test_bug_base() in file tests
Since a following commit is going to add a new test which references
Gitlab, so it’s best to move the URI bases inside the test cases.
Backported to GLib 2.58 by Simon McVittie.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
(cherry-picked from commit 32d3d02a50e7dcec5f4cf7908e7ac88d575d8fc5)
[GLib 2.58.x did not allow g_test_bug() without g_test_bug_base(),
so use an empty string as the base]
Signed-off-by: Simon McVittie <smcv collabora com>
gio/tests/file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/file.c b/gio/tests/file.c
index d2f147419..9c2af641f 100644
--- a/gio/tests/file.c
+++ b/gio/tests/file.c
@@ -679,7 +679,7 @@ test_replace_cancel (void)
guint count;
GError *error = NULL;
- g_test_bug ("629301");
+ g_test_bug ("https://bugzilla.gnome.org/629301");
path = g_dir_make_tmp ("g_file_replace_cancel_XXXXXX", &error);
g_assert_no_error (error);
@@ -1167,7 +1167,7 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
- g_test_bug_base ("http://bugzilla.gnome.org/");
+ g_test_bug_base ("");
g_test_add_func ("/file/basic", test_basic);
g_test_add_func ("/file/build-filename", test_build_filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]