From 721c1923e49cc10cec9821d0877d94237265ca6f Mon Sep 17 00:00:00 2001 From: Kirill Simonov Date: Sun, 21 May 2006 14:58:32 +0000 Subject: Add doxygen support. --- tests/Makefile.am | 2 +- tests/test-version.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index 75e52f9..ea70ba5 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,4 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -LDADD = $(top_srcdir)/src/libyaml.la +LDADD = $(top_builddir)/src/libyaml.la TESTS = test-version check_PROGRAMS = test-version diff --git a/tests/test-version.c b/tests/test-version.c index 51b75f4..578d678 100644 --- a/tests/test-version.c +++ b/tests/test-version.c @@ -7,17 +7,14 @@ int main(void) { - int major, minor, patch; + int major = -1; + int minor = -1; + int patch = -1; char buf[64]; yaml_get_version(&major, &minor, &patch); sprintf(buf, "%d.%d.%d", major, minor, patch); assert(strcmp(buf, yaml_get_version_string()) == 0); - assert(yaml_check_version(major+1, minor, patch) == 0); - assert(yaml_check_version(major, minor+1, patch) == 0); - assert(yaml_check_version(major, minor, patch+1) == 1); - assert(yaml_check_version(major, minor, patch) == 1); - assert(yaml_check_version(major, minor, patch-1) == 0); return 0; } -- cgit v1.2.1