From da9033015288a0d02d5deb5eea6f759c582b7330 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 23 Nov 2015 16:46:09 +0100 Subject: [PATCH] Fix tests --- .gitignore | 3 ++- tests/Makefile.am | 1 + tests/gswe-timestamp-test.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5ea1deb..1f9587d 100644 --- a/.gitignore +++ b/.gitignore @@ -59,7 +59,8 @@ Makefile.in /tests/*-test.trs /swe-glib-lcov* test-suite.log -/tests/gswe-timestamp-test.gc?? +*.gcno +*.gcda # Translation related files /ABOUT-NLS diff --git a/tests/Makefile.am b/tests/Makefile.am index 3865b06..2b29d94 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,6 +4,7 @@ LDADD = $(top_builddir)/src/libswe-glib-2.0.la DEFS = -DG_LOG_DOMAIN=\"SWE-GLib\" AM_CPPFLAGS = $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) $(LIBSWE_CFLAGS) -I$(top_srcdir)/src AM_CFLAGS = -g +AM_LDFLAGS = $(GOBJECT_LIBS) test_programs = gswe-timestamp-test TESTS += $(test_programs) diff --git a/tests/gswe-timestamp-test.c b/tests/gswe-timestamp-test.c index 35bfac1..a56e9d0 100644 --- a/tests/gswe-timestamp-test.c +++ b/tests/gswe-timestamp-test.c @@ -249,7 +249,7 @@ test_timestamp_conv_gregjd(void) gswe_assert_fuzzy_equals( jdet, td[1].jdet, - 0.000001 + 0.0001 ); g_clear_object(×tamp);