You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2005/09/13 04:47:50 UTC
svn commit: r280466 - /apr/apr/branches/1.2.x/test/testvsn.c
Author: wrowe
Date: Mon Sep 12 19:47:47 2005
New Revision: 280466
URL: http://svn.apache.org/viewcvs?rev=280466&view=rev
Log:
Backport: rev 280465
I noted that we didn't test the is_dev flag. Do so.
Modified:
apr/apr/branches/1.2.x/test/testvsn.c
Modified: apr/apr/branches/1.2.x/test/testvsn.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.2.x/test/testvsn.c?rev=280466&r1=280465&r2=280466&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/test/testvsn.c (original)
+++ apr/apr/branches/1.2.x/test/testvsn.c Mon Sep 12 19:47:47 2005
@@ -26,6 +26,12 @@
ABTS_STR_EQUAL(tc, APR_VERSION_STRING, apr_version_string());
}
+#ifdef APR_IS_DEV_VERSION
+# define IS_DEV 1
+#else
+# define IS_DEV 0
+#endif
+
static void test_ints(abts_case *tc, void *data)
{
apr_version_t vsn;
@@ -35,6 +41,7 @@
ABTS_INT_EQUAL(tc, APR_MAJOR_VERSION, vsn.major);
ABTS_INT_EQUAL(tc, APR_MINOR_VERSION, vsn.minor);
ABTS_INT_EQUAL(tc, APR_PATCH_VERSION, vsn.patch);
+ ABTS_INT_EQUAL(tc, IS_DEV, vsn.is_dev);
}
abts_suite *testvsn(abts_suite *suite)