Merge branch 'test-bug-numbers' into 'master'

tests: Drop use of g_test_bug_base()

See merge request GNOME/glib!2104
This commit is contained in:
Emmanuele Bassi 2021-05-13 21:56:15 +00:00
commit 2910ffd383
45 changed files with 79 additions and 129 deletions

View File

@ -104,7 +104,7 @@ test_launch_no_app_id (void)
"Exec=%s/appinfo-test --option %%u %%i --name %%c --filename %%k %%m %%%%",
g_test_get_dir (G_TEST_BUILT));
g_test_bug ("791337");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=791337");
for (i = 0; i < G_N_ELEMENTS (exec_line_variants); i++)
{
@ -581,7 +581,6 @@ main (int argc, char *argv[])
g_setenv ("XDG_CURRENT_DESKTOP", "GNOME", TRUE);
g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/show_bug.cgi?id=");
g_test_add_func ("/appinfo/basic", test_basic);
g_test_add_func ("/appinfo/text", test_text);

View File

@ -164,7 +164,7 @@ test_without_flush (SetupData *data,
{
prepare_data (data, FALSE);
g_test_bug ("617937");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=617937");
/* just close asynchronously */
g_output_stream_close_async (data->conv_stream,
@ -181,7 +181,7 @@ test_with_flush (SetupData *data, gconstpointer user_data)
{
GError *error = NULL;
g_test_bug ("617937");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=617937");
prepare_data (data, TRUE);
@ -222,7 +222,7 @@ static void
test_with_async_flush (SetupData *data,
gconstpointer user_data)
{
g_test_bug ("617937");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=617937");
prepare_data (data, TRUE);
@ -244,8 +244,6 @@ main (int argc,
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
data = g_slice_new (SetupData);
/* test closing asynchronously without flushing manually */

View File

@ -126,7 +126,7 @@ test_read_byte (void)
GInputStream *in;
GError *error;
g_test_bug ("562393");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=562393");
base = g_memory_input_stream_new_from_data ("abcdefgh", -1, NULL);
in = g_buffered_input_stream_new (base);
@ -536,7 +536,6 @@ main (int argc,
char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/buffered-input-stream/peek", test_peek);
g_test_add_func ("/buffered-input-stream/peek-buffer", test_peek_buffer);

View File

@ -390,7 +390,7 @@ test_type_is_a_special_case (void)
#else
gboolean res;
g_test_bug ("782311");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=782311");
/* Everything but the inode type is application/octet-stream */
res = g_content_type_is_a ("inode/directory", "application/octet-stream");
@ -463,8 +463,6 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/contenttype/guess", test_guess);
g_test_add_func ("/contenttype/guess_svg_from_data", test_guess_svg_from_data);
g_test_add_func ("/contenttype/mime_from_content", test_mime_from_content);

View File

@ -748,7 +748,7 @@ test_roundtrip (gconstpointer data)
GFileInfo *info;
GFileInfo *info2;
g_test_bug ("619945");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=619945");
data0 = g_malloc (DATA_LENGTH * sizeof (guint32));
for (i = 0; i < DATA_LENGTH; i++)
@ -1211,8 +1211,6 @@ main (int argc,
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/converter/basics", test_converter_basics);
g_test_add_func ("/converter-input-stream/expander", test_expander);
g_test_add_func ("/converter-input-stream/compressor", test_compressor);

View File

@ -68,7 +68,7 @@ test_input_filter (void)
gchar buf[1024];
GError *error = NULL;
g_test_bug ("568394");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=568394");
base = g_memory_input_stream_new_from_data ("abcdefghijk", -1, NULL);
f1 = g_object_new (TEST_TYPE_FILTER_INPUT_STREAM,
"base-stream", base,
@ -381,7 +381,6 @@ int
main (int argc, char **argv)
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/filter-stream/input", test_input_filter);
g_test_add_func ("/filter-stream/output", test_output_filter);

View File

@ -225,8 +225,7 @@ main (int argc, char *argv[])
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_bug ("787731");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=787731");
g_test_add_data_func ("/g-file-info-filesystem-readonly/test-fs-ro",
GINT_TO_POINTER (FALSE), test_filesystem_readonly);

View File

@ -1051,7 +1051,7 @@ test_message_parse_empty_arrays_of_arrays (void)
GVariant *body;
GError *error = NULL;
g_test_bug ("673612");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=673612");
/* These three-element array of empty arrays were previously read back as a
* two-element array of empty arrays, due to sometimes erroneously skipping
* four bytes to align for the eight-byte-aligned grandchild types (x and
@ -1107,7 +1107,7 @@ test_message_serialize_double_array (void)
GVariantBuilder builder;
GVariant *body;
g_test_bug ("732754");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=732754");
g_variant_builder_init (&builder, G_VARIANT_TYPE ("ad"));
g_variant_builder_add (&builder, "d", (gdouble)0.0);
@ -1480,7 +1480,6 @@ main (int argc,
setlocale (LC_ALL, "C");
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/show_bug.cgi?id=");
g_test_add_func ("/gdbus/message-serialize/basic",
test_message_serialize_basic);

View File

@ -270,7 +270,7 @@ test_store_splice_replace_middle (void)
GAction *item;
GPtrArray *array;
g_test_bug ("795307");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=795307");
store = g_list_store_new (G_TYPE_SIMPLE_ACTION);
model = G_LIST_MODEL (store);
@ -326,7 +326,7 @@ test_store_splice_replace_all (void)
GPtrArray *array;
GAction *item;
g_test_bug ("795307");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=795307");
store = g_list_store_new (G_TYPE_SIMPLE_ACTION);
model = G_LIST_MODEL (store);
@ -874,7 +874,6 @@ test_store_find (void)
int main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/");
g_test_add_func ("/glistmodel/store/properties", test_store_properties);
g_test_add_func ("/glistmodel/store/non-gobjects", test_store_non_gobjects);

View File

@ -233,7 +233,7 @@ test_exit1_cancel (void)
GSubprocess *proc;
TestExit1CancelData data = { 0 };
g_test_bug ("786456");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=786456");
args = get_test_subprocess_args ("exit1", NULL);
proc = g_subprocess_newv ((const gchar * const *) args->pdata, G_SUBPROCESS_FLAGS_NONE, error);
@ -288,7 +288,7 @@ test_exit1_cancel_in_cb (void)
GSubprocess *proc;
TestExit1CancelData data = { 0 };
g_test_bug ("786456");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=786456");
args = get_test_subprocess_args ("exit1", NULL);
proc = g_subprocess_newv ((const gchar * const *) args->pdata, G_SUBPROCESS_FLAGS_NONE, error);
@ -1812,7 +1812,6 @@ main (int argc, char **argv)
gsize i;
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/");
g_test_add_func ("/gsubprocess/noop", test_noop);
g_test_add_func ("/gsubprocess/noop-all-to-null", test_noop_all_to_null);

View File

@ -33,7 +33,7 @@ test_truncate (void)
GError *error = NULL;
guint8 *data;
g_test_bug ("540423");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=540423");
mo = g_memory_output_stream_new_resizable ();
g_assert (g_seekable_can_truncate (G_SEEKABLE (mo)));
@ -66,7 +66,7 @@ test_truncate (void)
for (i = 1000; i < 3000; i++)
g_assert_cmpuint (data[i], ==, 2);
g_test_bug ("720080");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=720080");
g_seekable_truncate (G_SEEKABLE (mo), 8192, NULL, &error);
g_assert_cmpint (g_memory_output_stream_get_data_size (G_MEMORY_OUTPUT_STREAM (mo)), ==, 8192);
@ -199,7 +199,7 @@ test_data_size (void)
GDataOutputStream *o;
int pos;
g_test_bug ("540459");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=540459");
mo = g_memory_output_stream_new_resizable ();
o = g_data_output_stream_new (mo);
@ -211,7 +211,7 @@ test_data_size (void)
pos = g_seekable_tell (G_SEEKABLE (mo));
g_assert_cmpint (pos, ==, 1);
g_test_bug ("540461");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=540461");
g_seekable_seek (G_SEEKABLE (mo), 0, G_SEEK_SET, NULL, NULL);
pos = g_seekable_tell (G_SEEKABLE (mo));
@ -239,7 +239,7 @@ test_properties (void)
gpointer data_prop;
gpointer func;
g_test_bug ("605733");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=605733");
mo = (GOutputStream*) g_object_new (G_TYPE_MEMORY_OUTPUT_STREAM,
"realloc-function", g_realloc,
@ -430,7 +430,6 @@ main (int argc,
char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/memory-output-stream/truncate", test_truncate);
g_test_add_func ("/memory-output-stream/seek/fixed", test_seek_fixed);

View File

@ -1011,7 +1011,7 @@ test_happy_eyeballs_ipv6_error_ipv4_very_slow (HappyEyeballsFixture *fixture,
AsyncData data = { 0 };
GError *ipv6_error;
g_test_bug ("merge_requests/865");
g_test_bug ("https://gitlab.gnome.org/GNOME/glib/merge_requests/865");
g_test_summary ("Ensure that we successfully return IPv4 results even when they come significantly later than an IPv6 failure.");
/* If ipv6 fails, ensuring that ipv6 errors before ipv4 finishes, we still get ipv4. */
@ -1187,7 +1187,6 @@ main (int argc, char *argv[])
gchar *path;
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://gitlab.gnome.org/GNOME/glib/");
g_test_add_func ("/network-address/basic", test_basic);

View File

@ -58,7 +58,7 @@ test_network_monitor (void)
{
guint ii;
g_test_bug ("793727");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=793727");
if (g_test_subprocess ())
{
@ -86,7 +86,6 @@ int
main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/show_bug.cgi?id=");
g_test_add_func ("/network-monitor/create-in-thread",
test_network_monitor);

View File

@ -285,7 +285,6 @@ int
main (int argc, char **argv)
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/filter-stream/input", test);
g_test_add_func ("/filter-stream/async", asynch);

View File

@ -86,8 +86,6 @@ main (int argc,
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/socket-listener/event-signal", test_event_signal);
return g_test_run();

View File

@ -182,7 +182,7 @@ test_threaded_712570 (void)
GSocketClient *client;
GError *error = NULL;
g_test_bug ("712570");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=712570");
g_mutex_lock (&mutex_712570);
@ -557,8 +557,6 @@ main (int argc,
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/socket-service/start-stop", test_start_stop);
g_test_add_func ("/socket-service/threaded/712570", test_threaded_712570);
g_test_add_func ("/socket-service/read_write_async", test_read_write_async);

View File

@ -1227,7 +1227,7 @@ test_fd_reuse (void)
gssize len;
gchar buf[128];
g_test_bug ("741707");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=741707");
data = create_server (G_SOCKET_FAMILY_IPV4, echo_server_thread, FALSE, &error);
if (error != NULL)
@ -2140,7 +2140,6 @@ main (int argc,
GError *error = NULL;
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/");
sock = g_socket_new (G_SOCKET_FAMILY_IPV6,
G_SOCKET_TYPE_STREAM,

View File

@ -965,7 +965,7 @@ test_file_hard_links (Fixture *fixture,
GError *error = NULL;
TestData data;
g_test_bug ("755721");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=755721");
#ifdef HAVE_LINK
g_test_message ("Running with hard link tests");
@ -1020,8 +1020,6 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/show_bug.cgi?id=");
g_test_add ("/monitor/atomic-replace", Fixture, NULL, setup, test_atomic_replace, teardown);
g_test_add ("/monitor/file-changes", Fixture, NULL, setup, test_file_changes, teardown);
g_test_add ("/monitor/dir-monitor", Fixture, NULL, setup, test_dir_monitor, teardown);

View File

@ -38,7 +38,7 @@ test_trash_not_supported (void)
gchar *parent_dirname;
GStatBuf parent_stat, home_stat;
g_test_bug ("251");
g_test_bug ("https://gitlab.gnome.org/GNOME/glib/issues/251");
/* The test assumes that tmp file is located on system internal mount. */
file = g_file_new_tmp ("test-trashXXXXXX", &stream, &error);
@ -105,7 +105,7 @@ test_trash_symlinks (void)
gchar *target, *tmp, *target_over_symlink;
GError *error = NULL;
g_test_bug ("1522");
g_test_bug ("https://gitlab.gnome.org/GNOME/glib/issues/1522");
target = g_build_filename (g_get_home_dir (), ".local", NULL);
@ -204,8 +204,6 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://gitlab.gnome.org/GNOME/glib/issues/");
g_test_add_func ("/trash/not-supported", test_trash_not_supported);
g_test_add_func ("/trash/symlinks", test_trash_symlinks);

View File

@ -745,6 +745,7 @@ fixture_test (guint *fix,
g_test_bug ("123");
g_test_bug_base ("http://www.example.com/bugtracker?bugnum=%s;cmd=showbug");
g_test_bug ("456");
g_test_bug ("https://example.com/no-base-used");
}
static void
fixture_teardown (guint *fix,

View File

@ -2013,7 +2013,7 @@ g_test_message (const char *format,
* case only.
* Bug URIs are constructed by appending a bug specific URI
* portion to @uri_pattern, or by replacing the special string
* '\%s' within @uri_pattern if that is present.
* `%s` within @uri_pattern if that is present.
*
* If g_test_bug_base() is not called, bug URIs are formed solely
* from the value provided by g_test_bug().
@ -2029,15 +2029,19 @@ g_test_bug_base (const char *uri_pattern)
/**
* g_test_bug:
* @bug_uri_snippet: Bug specific bug tracker URI portion.
* @bug_uri_snippet: Bug specific bug tracker URI or URI portion.
*
* This function adds a message to test reports that
* associates a bug URI with a test case.
*
* Bug URIs are constructed from a base URI set with g_test_bug_base()
* and @bug_uri_snippet. If g_test_bug_base() has not been called, it is
* assumed to be the empty string, so a full URI can be provided to
* g_test_bug() instead.
*
* Since GLib 2.70, the base URI is not prepended to @bug_uri_snippet if it
* is already a valid URI.
*
* Since: 2.16
* See also: g_test_summary()
*/
@ -2048,6 +2052,13 @@ g_test_bug (const char *bug_uri_snippet)
g_return_if_fail (bug_uri_snippet != NULL);
if (g_str_has_prefix (bug_uri_snippet, "http:") ||
g_str_has_prefix (bug_uri_snippet, "https:"))
{
g_test_message ("Bug Reference: %s", bug_uri_snippet);
return;
}
if (test_uri_base != NULL)
c = strstr (test_uri_base, "%s");
if (c)

View File

@ -51,7 +51,7 @@ static gpointer thread_func (gpointer nil)
static void
testcase (void)
{
g_test_bug ("642026");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=642026");
mutex = g_mutex_new ();
cond = g_cond_new ();
@ -86,7 +86,6 @@ main (int argc,
char **argv)
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/show_bug.cgi?id=");
g_test_add_func ("/glib/642026", testcase);

View File

@ -1991,8 +1991,6 @@ main (int argc, char *argv[])
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/");
/* array tests */
g_test_add_func ("/array/new/zero-terminated", array_new_zero_terminated);
g_test_add_func ("/array/ref-count", array_ref_count);

View File

@ -247,7 +247,7 @@ test_base64_encode_incremental_small_block (gconstpointer block_size_p)
gsize i;
struct MyRawData myraw;
g_test_bug ("780066");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=780066");
generate_databuffer_for_base64 (&myraw);
@ -492,7 +492,6 @@ main (int argc, char *argv[])
gint i;
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/browse.cgi?product=");
for (i = 0; i < DATA_SIZE; i++)
data[i] = (guchar)i;

View File

@ -423,8 +423,6 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/");
g_test_add_func ("/bytes/new", test_new);
g_test_add_func ("/bytes/new-take", test_new_take);
g_test_add_func ("/bytes/new-static", test_new_static);

View File

@ -76,8 +76,6 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugs.gnome.org/");
g_test_add_func ("/charset/language_names_with_category", test_language_names_with_category);
g_test_add_func ("/charset/language_names_with_category_async", test_language_names_with_category_async);

View File

@ -324,8 +324,7 @@ test_wait_until_errno (void)
act.sa_handler = signal_handler;
g_test_summary ("Check proper handling of errno in g_cond_wait_until with a contended mutex");
g_test_bug_base ("https://gitlab.gnome.org/GNOME/glib/");
g_test_bug ("merge_requests/957");
g_test_bug ("https://gitlab.gnome.org/GNOME/glib/merge_requests/957");
g_mutex_init (&lock);
g_cond_init (&cond);

View File

@ -242,7 +242,7 @@ test_month_substring (void)
{
GDate date;
g_test_bug ("793550");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=793550");
if (setlocale (LC_ALL, "pl_PL") == NULL)
{
@ -282,7 +282,7 @@ test_month_names (void)
#endif
#endif /* defined(HAVE_LANGINFO_ABALTMON) || defined(G_OS_WIN32) */
g_test_bug ("749206");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=749206");
/* If running uninstalled (G_TEST_BUILDDIR is set), skip this test, since we
* need the translations to be installed. We cant mess around with
@ -789,7 +789,6 @@ main (int argc, char** argv)
#endif
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/date/basic", test_basic);
g_test_add_func ("/date/empty", test_empty_constructor);

View File

@ -1439,7 +1439,7 @@ test_fopen_modes (void)
"ab+"
};
g_test_bug ("119");
g_test_bug ("https://gitlab.gnome.org/GNOME/glib/merge_requests/119");
if (g_file_test (path, G_FILE_TEST_EXISTS))
g_error ("failed, %s exists, cannot test g_fopen()", path);
@ -1826,8 +1826,6 @@ main (int argc,
g_setenv ("LC_ALL", "C", TRUE);
g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NULL);
g_test_bug_base ("https://gitlab.gnome.org/GNOME/glib/merge_requests/");
#ifdef G_OS_WIN32
g_test_add_func ("/fileutils/stdio-win32-pathstrip", test_win32_pathstrip);
g_test_add_func ("/fileutils/stdio-win32-zero-terminate-symlink", test_win32_zero_terminate_symlink);

View File

@ -35,7 +35,6 @@ int
main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://gitlab.gnome.org/GNOME/glib/issues");
g_test_add_func ("/gutils/get_user_database_entry", test_get_user_database_entry);

View File

@ -61,7 +61,6 @@ int
main (int argc, char **argv)
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
/* GUuid Tests */
g_test_add_func ("/uuid/string", test_guuid_string);

View File

@ -5122,7 +5122,6 @@ main (int argc, char **argv)
guint i;
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("");
g_test_add_func ("/gvariant/type", test_gvarianttype);
g_test_add_func ("/gvariant/type/string-scan/recursion/tuple",

View File

@ -759,7 +759,7 @@ test_lookup_null_key (void)
gpointer key;
gpointer value;
g_test_bug ("642944");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=642944");
h = g_hash_table_new (null_safe_str_hash, null_safe_str_equal);
g_hash_table_insert (h, "abc", "ABC");
@ -1012,7 +1012,7 @@ test_destroy_modify (void)
FakeFreeData *ffd;
guint i;
g_test_bug ("650459");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=650459");
fake_free_data = g_ptr_array_new ();
@ -1518,7 +1518,7 @@ test_iter_replace (void)
gpointer k, v;
gchar *s;
g_test_bug ("662544");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=662544");
h = g_hash_table_new_full (g_str_hash, g_str_equal, my_key_free, my_value_free);
@ -1555,7 +1555,7 @@ test_set_insert_corruption (void)
gchar b[] = "foo";
gpointer key, value;
g_test_bug ("692815");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=692815");
g_hash_table_insert (hash_table, a, a);
g_assert (g_hash_table_contains (hash_table, "foo"));
@ -1664,8 +1664,6 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/hash/misc", test_hash_misc);
g_test_add_data_func ("/hash/one", GINT_TO_POINTER (TRUE), second_hash_test);
g_test_add_data_func ("/hash/honeyman", GINT_TO_POINTER (FALSE), second_hash_test);

View File

@ -897,7 +897,7 @@ test_group_remove (void)
"key1=bla\n"
"key2=bla\n";
g_test_bug ("165887");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=165887");
keyfile = load_data (data, 0);
@ -952,7 +952,7 @@ test_key_remove (void)
"key1=bla\n"
"key2=bla\n";
g_test_bug ("165980");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=165980");
keyfile = load_data (data, 0);
@ -986,7 +986,7 @@ test_groups (void)
"[2]\n"
"key2=123\n";
g_test_bug ("316309");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=316309");
keyfile = load_data (data, 0);
@ -1267,7 +1267,7 @@ test_duplicate_groups (void)
"[Desktop Entry]\n"
"key2=123\n";
g_test_bug ("157877");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=157877");
keyfile = load_data (data, 0);
check_string_value (keyfile, "Desktop Entry", "key1", "123");
@ -1288,7 +1288,7 @@ test_duplicate_groups2 (void)
"[A]\n"
"foo=bang\n";
g_test_bug ("385910");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=385910");
keyfile = load_data (data, 0);
check_string_value (keyfile, "A", "foo", "bang");
@ -1324,7 +1324,7 @@ test_reload_idempotency (void)
gchar *data1, *data2;
gsize len1, len2;
g_test_bug ("420686");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=420686");
/* check that we only insert a single new line between groups */
keyfile = g_key_file_new ();
@ -1371,7 +1371,7 @@ test_int64 (void)
gint64 d;
gchar *value;
g_test_bug ("614864");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=614864");
file = g_key_file_new ();
@ -1552,7 +1552,7 @@ test_page_boundary (void)
#define LAST_KEY 99
#define VALUE 92
g_test_bug ("640695");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=640695");
file = g_key_file_new ();
@ -1823,8 +1823,6 @@ main (int argc, char *argv[])
g_setenv ("XDG_DATA_HOME", g_test_get_dir (G_TEST_DIST), TRUE);
#endif
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/keyfile/line-ends", test_line_ends);
g_test_add_func ("/keyfile/whitespace", test_whitespace);
g_test_add_func ("/keyfile/comments", test_comments);

View File

@ -340,7 +340,7 @@ test_handler (const gchar *log_domain,
static void
bug653052 (void)
{
g_test_bug ("653052");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=653052");
g_test_log_set_fatal_handler (good_failure_handler, fail_str);
g_log_set_default_handler (test_handler, log_str);
@ -637,7 +637,6 @@ main (int argc, char *argv[])
g_unsetenv ("G_MESSAGES_DEBUG");
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/logging/default-handler", test_default_handler);
g_test_add_func ("/logging/default-handler/subprocess/error", test_default_handler_error);

View File

@ -687,7 +687,7 @@ test_blocked_child_sources (void)
GMainLoop *loop;
GSource *source;
g_test_bug ("701283");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=701283");
ctx = g_main_context_new ();
loop = g_main_loop_new (ctx, FALSE);
@ -886,7 +886,7 @@ test_mainloop_overflow (void)
TestOverflowData data;
guint i;
g_test_bug ("687098");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=687098");
memset (&data, 0, sizeof (data));
@ -2103,7 +2103,6 @@ main (int argc, char *argv[])
gint i;
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/maincontext/basic", test_maincontext_basic);
g_test_add_func ("/maincontext/source_finalization", test_maincontext_source_finalization);

View File

@ -191,7 +191,7 @@ empty_alloc_subprocess (void)
static void
empty_alloc (void)
{
g_test_bug ("615379");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=615379");
g_assert_cmpint (sizeof (Empty), ==, 0);
@ -210,8 +210,6 @@ main (int argc,
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/mem/overflow", mem_overflow);
g_test_add_func ("/mem/overflow/subprocess/malloc_n_a_a", mem_overflow_malloc_n_a_a);
g_test_add_func ("/mem/overflow/subprocess/malloc_n_a_b", mem_overflow_malloc_n_a_b);

View File

@ -116,7 +116,7 @@ test_group_captions (void)
guint i;
gsize j;
g_test_bug ("504142");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=504142");
for (i = 0; i < 4; ++i)
{
@ -1775,7 +1775,7 @@ unknown_short_test (void)
int argc;
GOptionEntry entries [] = { G_OPTION_ENTRY_NULL };
g_test_bug ("166609");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=166609");
context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, NULL);
@ -1805,7 +1805,7 @@ lonely_dash_test (void)
gchar **argv_copy;
int argc;
g_test_bug ("168008");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=168008");
context = g_option_context_new (NULL);
@ -1881,7 +1881,7 @@ missing_arg_test (void)
{ { "test", 't', 0, G_OPTION_ARG_STRING, &arg, NULL, NULL },
G_OPTION_ENTRY_NULL };
g_test_bug ("305576");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=305576");
context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, NULL);
@ -1947,7 +1947,7 @@ dash_arg_test (void)
{ "three", '3', 0, G_OPTION_ARG_NONE, &argb, NULL, NULL },
G_OPTION_ENTRY_NULL };
g_test_bug ("577638");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=577638");
context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, NULL);
@ -2172,7 +2172,7 @@ test_help_no_help_options (void)
G_OPTION_ENTRY_NULL
};
g_test_bug ("697652");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=697652");
context = g_option_context_new ("blabla");
g_option_context_add_main_entries (context, entries, NULL);
@ -2500,7 +2500,7 @@ short_remaining (void)
gchar **argv, **argv_copy;
gint argc;
g_test_bug ("729563");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=729563");
argv = split_string ("program -ri -n 4 -t hello file1 file2", &argc);
argv_copy = copy_stringv (argv, argc);
@ -2542,7 +2542,7 @@ double_free (void)
gint argc;
GError *error = NULL;
g_test_bug ("646926");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=646926");
argv = split_string ("program --known=foo --known=bar --unknown=baz", &argc);
@ -2604,8 +2604,6 @@ main (int argc,
g_setenv ("LC_ALL", "C", TRUE);
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/option/help/options", test_help);
g_test_add_func ("/option/help/no-options", test_help_no_options);
g_test_add_func ("/option/help/no-help-options", test_help_no_help_options);

View File

@ -160,7 +160,7 @@ test_double_range (void)
{
gdouble d;
g_test_bug ("502560");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=502560");
d = g_random_double_range (-G_MAXDOUBLE, G_MAXDOUBLE);
@ -173,7 +173,6 @@ main (int argc,
char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/rand/test-rand", test_rand);
g_test_add_func ("/rand/double-range", test_double_range);

View File

@ -2124,7 +2124,7 @@ test_multiline (void)
GMatchInfo *info;
gint count;
g_test_bug ("640489");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=640489");
regex = g_regex_new ("^a$", G_REGEX_MULTILINE|G_REGEX_DOTALL, 0, NULL);
@ -2194,8 +2194,6 @@ main (int argc, char *argv[])
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/regex/properties", test_properties);
g_test_add_func ("/regex/class", test_class);
g_test_add_func ("/regex/lookahead", test_lookahead);

View File

@ -161,7 +161,7 @@ test_appname (void)
static void
test_tmpdir (void)
{
g_test_bug ("627969");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=627969");
g_assert_cmpstr (g_get_tmp_dir (), !=, "");
}
@ -829,7 +829,6 @@ main (int argc,
g_set_prgname (argv[0]);
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/utils/language-names", test_language_names);
g_test_add_func ("/utils/locale-variants", test_locale_variants);

View File

@ -574,8 +574,7 @@ binding_chain (void)
BindingSource *c = g_object_new (binding_source_get_type (), NULL);
GBinding *binding_1, *binding_2;
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_bug ("621782");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=621782");
/* A -> B, B -> C */
binding_1 = g_object_bind_property (a, "foo", b, "foo", G_BINDING_BIDIRECTIONAL);
@ -794,7 +793,7 @@ binding_unbind_multiple (void)
GBinding *binding;
guint i;
g_test_bug ("1373");
g_test_bug ("https://gitlab.gnome.org/GNOME/glib/issues/1373");
binding = g_object_bind_property (source, "foo",
target, "bar",
@ -1081,8 +1080,6 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("https://gitlab.gnome.org/GNOME/glib/issues/");
g_test_add_func ("/binding/default", binding_default);
g_test_add_func ("/binding/canonicalisation", binding_canonicalisation);
g_test_add_func ("/binding/bidirectional", binding_bidirectional);

View File

@ -618,7 +618,7 @@ test_not_overridden (void)
if (!g_test_undefined ())
return;
g_test_bug ("637738");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=637738");
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
"*Base2Object doesn't implement property 'prop3' from interface 'TestIface'*");
@ -632,7 +632,6 @@ int
main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/interface/properties/set", test_set);
g_test_add_func ("/interface/properties/notify", test_notify);

View File

@ -122,7 +122,7 @@ test_object_constructor_infanticide (void)
GObject *obj;
int i;
g_test_bug ("661576");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=661576");
for (i = 0; i < 1000; i++)
{
@ -142,7 +142,6 @@ int
main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/object/constructor/singleton", test_object_constructor_singleton);
g_test_add_func ("/object/constructor/infanticide", test_object_constructor_infanticide);

View File

@ -322,7 +322,7 @@ properties_construct (void)
gboolean b;
gchar *s;
g_test_bug ("630357");
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=630357");
/* more than 16 args triggers a realloc in g_object_new_valist() */
obj = g_object_new (test_object_get_type (),
@ -638,8 +638,6 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/");
g_test_add_func ("/properties/install", properties_install);
g_test_add_func ("/properties/notify", properties_notify);
g_test_add_func ("/properties/notify-queue", properties_notify_queue);