Fix tests

This commit is contained in:
Gergely Polonkai 2015-11-23 16:46:09 +01:00
parent 92f3b7e957
commit da90330152
3 changed files with 4 additions and 2 deletions

3
.gitignore vendored
View File

@ -59,7 +59,8 @@ Makefile.in
/tests/*-test.trs /tests/*-test.trs
/swe-glib-lcov* /swe-glib-lcov*
test-suite.log test-suite.log
/tests/gswe-timestamp-test.gc?? *.gcno
*.gcda
# Translation related files # Translation related files
/ABOUT-NLS /ABOUT-NLS

View File

@ -4,6 +4,7 @@ LDADD = $(top_builddir)/src/libswe-glib-2.0.la
DEFS = -DG_LOG_DOMAIN=\"SWE-GLib\" DEFS = -DG_LOG_DOMAIN=\"SWE-GLib\"
AM_CPPFLAGS = $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) $(LIBSWE_CFLAGS) -I$(top_srcdir)/src AM_CPPFLAGS = $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) $(LIBSWE_CFLAGS) -I$(top_srcdir)/src
AM_CFLAGS = -g AM_CFLAGS = -g
AM_LDFLAGS = $(GOBJECT_LIBS)
test_programs = gswe-timestamp-test test_programs = gswe-timestamp-test
TESTS += $(test_programs) TESTS += $(test_programs)

View File

@ -249,7 +249,7 @@ test_timestamp_conv_gregjd(void)
gswe_assert_fuzzy_equals( gswe_assert_fuzzy_equals(
jdet, jdet,
td[1].jdet, td[1].jdet,
0.000001 0.0001
); );
g_clear_object(&timestamp); g_clear_object(&timestamp);