Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Add bug references to some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Clasen committed Aug 14, 2010
1 parent ea8a963 commit e02571e
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gio/tests/async-close-output-stream.c
Expand Up @@ -169,6 +169,8 @@ test_without_flush (SetupData *data,
{
prepare_data (data, FALSE);

g_test_bug ("617937");

/* just close asynchronously */
g_output_stream_close_async (data->conv_stream,
G_PRIORITY_DEFAULT,
Expand All @@ -184,6 +186,8 @@ test_with_flush (SetupData *data, gconstpointer user_data)
{
GError *error = NULL;

g_test_bug ("617937");

prepare_data (data, TRUE);

g_output_stream_flush (data->conv_stream, NULL, &error);
Expand Down Expand Up @@ -223,6 +227,8 @@ static void
test_with_async_flush (SetupData *data,
gconstpointer user_data)
{
g_test_bug ("617937");

prepare_data (data, TRUE);

/* first flush async */
Expand All @@ -246,6 +252,8 @@ 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 */
Expand Down
4 changes: 4 additions & 0 deletions gio/tests/converter-stream.c
Expand Up @@ -643,6 +643,8 @@ test_roundtrip (gconstpointer data)
{
const CompressorTest *test = data;

g_test_bug ("162549");

test_corruption (test->format, test->level);
}

Expand Down Expand Up @@ -742,6 +744,8 @@ main (int argc,
g_type_init ();
g_test_init (&argc, &argv, NULL);

g_test_bug_base ("http://bugzilla.gnome.org/");

g_test_add_func ("/converter-input-stream/expander", test_expander);
g_test_add_func ("/converter-input-stream/compressor", test_compressor);

Expand Down
29 changes: 29 additions & 0 deletions glib/tests/mem-overflow.c
Expand Up @@ -19,6 +19,10 @@
* if advised of the possibility of such damage.
*/

/* We test for errors in optimize-only definitions in gmem.h */

#pragma GCC optimize (1)

#include "glib.h"
#include <stdlib.h>

Expand Down Expand Up @@ -96,13 +100,38 @@ mem_overflow (void)
free (q);
}

typedef struct
{
} Empty;

static void
empty_alloc (void)
{
g_test_bug ("615379");

g_assert_cmpint (sizeof (Empty), ==, 0);

if (g_test_trap_fork (0, 0))
{
Empty *empty;

empty = g_new0 (Empty, 1);
g_assert (empty == NULL);
exit (0);
}
g_test_trap_assert_passed ();
}

int
main (int argc,
char *argv[])
{
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/empty-alloc", empty_alloc);

return g_test_run();
}
4 changes: 4 additions & 0 deletions gobject/tests/binding.c
Expand Up @@ -395,6 +395,8 @@ binding_chain (void)
BindingSource *c = g_object_new (binding_source_get_type (), NULL);
GBinding *binding_1, *binding_2;

g_test_bug ("621782");

/* A -> B, B -> C */
binding_1 = g_object_bind_property (a, "foo", b, "foo", G_BINDING_BIDIRECTIONAL);
binding_2 = g_object_bind_property (b, "foo", c, "foo", G_BINDING_BIDIRECTIONAL);
Expand Down Expand Up @@ -489,6 +491,8 @@ main (int argc, char *argv[])
g_type_init ();
g_test_init (&argc, &argv, NULL);

g_test_bug_base ("http://bugzilla.gnome.org/");

g_test_add_func ("/binding/default", binding_default);
g_test_add_func ("/binding/bidirectional", binding_bidirectional);
g_test_add_func ("/binding/transform", binding_transform);
Expand Down

0 comments on commit e02571e

Please sign in to comment.