Commit e02571e9 authored by Matthias Clasen's avatar Matthias Clasen

Add bug references to some tests

parent ea8a9639
......@@ -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,
......@@ -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);
......@@ -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 */
......@@ -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 */
......
......@@ -643,6 +643,8 @@ test_roundtrip (gconstpointer data)
{
const CompressorTest *test = data;
g_test_bug ("162549");
test_corruption (test->format, test->level);
}
......@@ -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);
......
......@@ -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>
......@@ -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();
}
......@@ -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);
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment