From 2663872328758510c713546c610c12af05ffecb3 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 5 Dec 2012 15:40:15 -0500 Subject: [PATCH] tests: Fix up WarnLib build, remove accidental additions to regress.c Previous WarnLib commit was broken. --- tests/scanner/Makefile.am | 2 +- tests/scanner/WarnLib-1.0-expected.gir | 32 ++++++++++++++++++++++++++++++++ tests/scanner/regress.c | 14 -------------- 3 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 tests/scanner/WarnLib-1.0-expected.gir diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am index 01c4ea5..ba2a58b 100644 --- a/tests/scanner/Makefile.am +++ b/tests/scanner/Makefile.am @@ -81,7 +81,7 @@ WarnLib-1.0.gir: $(top_builddir)/Gio-2.0.gir libwarnlib.la WarnLib_1_0_gir_LIBS = libwarnlib.la WarnLib_1_0_gir_INCLUDES = Gio-2.0 WarnLib_1_0_gir_FILES = $(libwarnlib_la_SOURCES) -WarnLib_1_0_gir_SCANNERFLAGS = --c-include="warnlib.h" +WarnLib_1_0_gir_SCANNERFLAGS = --c-include="warnlib.h" --symbol-prefix=warnlib_ GIRS += WarnLib-1.0.gir Annotation-1.0.gir: Utility-1.0.gir libannotation.la diff --git a/tests/scanner/WarnLib-1.0-expected.gir b/tests/scanner/WarnLib-1.0-expected.gir new file mode 100644 index 0000000..9f3b348 --- /dev/null +++ b/tests/scanner/WarnLib-1.0-expected.gir @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 27791d7..b7526bf 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -1656,20 +1656,6 @@ regress_atest_error_quark (void) return g_quark_from_static_string ("regress-atest-error"); } -GQuark -regress_unpaired_error_quark (void) -{ - return g_quark_from_static_string ("regress-unpaired-error"); -} - -gboolean -regress_throw_unpaired (GError **error) -{ - g_set_error_literal (error, regress_unpaired_error_quark (), 0, - "Unpaired error"); - return FALSE; -} - /* structures */ /** -- 2.7.4