Set *nrows in dbd_pgsql_pquery
[apr-util.git] / test / testutil.h
blobedae9e06552fd9dd5ad9f24377dc892f85972903
1 /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
2 * applicable.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include "apr_pools.h"
18 #include "abts.h"
20 #ifndef APR_TEST_UTIL
21 #define APR_TEST_UTIL
23 /* XXX FIXME */
24 #ifdef WIN32
25 #define EXTENSION ".exe"
26 #elif NETWARE
27 #define EXTENSION ".nlm"
28 #else
29 #define EXTENSION
30 #endif
32 #define STRING_MAX 8096
34 /* Some simple functions to make the test apps easier to write and
35 * a bit more consistent...
38 extern apr_pool_t *p;
40 /* Assert that RV is an APR_SUCCESS value; else fail giving strerror
41 * for RV and CONTEXT message. */
42 void apr_assert_success(abts_case* tc, const char *context, apr_status_t rv);
44 void initialize(void);
46 abts_suite *teststrmatch(abts_suite *suite);
47 abts_suite *testuri(abts_suite *suite);
48 abts_suite *testuuid(abts_suite *suite);
49 abts_suite *testbuckets(abts_suite *suite);
50 abts_suite *testpass(abts_suite *suite);
51 abts_suite *testmd4(abts_suite *suite);
52 abts_suite *testmd5(abts_suite *suite);
53 abts_suite *testldap(abts_suite *suite);
54 abts_suite *testdbd(abts_suite *suite);
55 abts_suite *testdaterfc(abts_suite *suite);
57 #endif /* APR_TEST_INCLUDES */