[glib] Add bug references to some tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add bug references to some tests
- Date: Sat, 14 Aug 2010 01:24:40 +0000 (UTC)
commit e02571e93bb4c1986ec1190fb6c7d02eba0c746a
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 13 21:22:45 2010 -0400
Add bug references to some tests
gio/tests/async-close-output-stream.c | 8 ++++++++
gio/tests/converter-stream.c | 4 ++++
glib/tests/mem-overflow.c | 29 +++++++++++++++++++++++++++++
gobject/tests/binding.c | 4 ++++
4 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/async-close-output-stream.c b/gio/tests/async-close-output-stream.c
index 8fc8e7e..c4a6c2e 100644
--- a/gio/tests/async-close-output-stream.c
+++ b/gio/tests/async-close-output-stream.c
@@ -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 */
diff --git a/gio/tests/converter-stream.c b/gio/tests/converter-stream.c
index 14225c5..e5d18ed 100644
--- a/gio/tests/converter-stream.c
+++ b/gio/tests/converter-stream.c
@@ -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);
diff --git a/glib/tests/mem-overflow.c b/glib/tests/mem-overflow.c
index 9ebd443..8649b24 100644
--- a/glib/tests/mem-overflow.c
+++ b/glib/tests/mem-overflow.c
@@ -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();
}
diff --git a/gobject/tests/binding.c b/gobject/tests/binding.c
index dc3b83c..31993f3 100644
--- a/gobject/tests/binding.c
+++ b/gobject/tests/binding.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]