~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr/test/testutil.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
 
2
 * applicable.
 
3
 *
 
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
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
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.
 
15
 */
 
16
 
 
17
#include "apr_pools.h"
 
18
#include "abts.h"
 
19
 
 
20
#ifndef APR_TEST_UTIL
 
21
#define APR_TEST_UTIL
 
22
 
 
23
/* XXX FIXME */
 
24
#ifdef WIN32
 
25
#define EXTENSION ".exe"
 
26
#elif NETWARE
 
27
#define EXTENSION ".nlm"
 
28
#else
 
29
#define EXTENSION
 
30
#endif
 
31
 
 
32
#define STRING_MAX 8096
 
33
 
 
34
/* Some simple functions to make the test apps easier to write and
 
35
 * a bit more consistent...
 
36
 */
 
37
 
 
38
extern apr_pool_t *p;
 
39
 
 
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, 
 
43
                        apr_status_t rv, int lineno);
 
44
#define APR_ASSERT_SUCCESS(tc, ctxt, rv) \
 
45
             apr_assert_success(tc, ctxt, rv, __LINE__)
 
46
 
 
47
void initialize(void);
 
48
 
 
49
abts_suite *testatomic(abts_suite *suite);
 
50
abts_suite *testdir(abts_suite *suite);
 
51
abts_suite *testdso(abts_suite *suite);
 
52
abts_suite *testdup(abts_suite *suite);
 
53
abts_suite *testenv(abts_suite *suite);
 
54
abts_suite *testfile(abts_suite *suite);
 
55
abts_suite *testfilecopy(abts_suite *suite);
 
56
abts_suite *testfileinfo(abts_suite *suite);
 
57
abts_suite *testflock(abts_suite *suite);
 
58
abts_suite *testfmt(abts_suite *suite);
 
59
abts_suite *testfnmatch(abts_suite *suite);
 
60
abts_suite *testgetopt(abts_suite *suite);
 
61
abts_suite *testglobalmutex(abts_suite *suite);
 
62
abts_suite *testhash(abts_suite *suite);
 
63
abts_suite *testipsub(abts_suite *suite);
 
64
abts_suite *testlock(abts_suite *suite);
 
65
abts_suite *testlfs(abts_suite *suite);
 
66
abts_suite *testmmap(abts_suite *suite);
 
67
abts_suite *testnames(abts_suite *suite);
 
68
abts_suite *testoc(abts_suite *suite);
 
69
abts_suite *testpath(abts_suite *suite);
 
70
abts_suite *testpipe(abts_suite *suite);
 
71
abts_suite *testpoll(abts_suite *suite);
 
72
abts_suite *testpool(abts_suite *suite);
 
73
abts_suite *testproc(abts_suite *suite);
 
74
abts_suite *testprocmutex(abts_suite *suite);
 
75
abts_suite *testrand(abts_suite *suite);
 
76
abts_suite *testrand2(abts_suite *suite);
 
77
abts_suite *testsleep(abts_suite *suite);
 
78
abts_suite *testshm(abts_suite *suite);
 
79
abts_suite *testsock(abts_suite *suite);
 
80
abts_suite *testsockets(abts_suite *suite);
 
81
abts_suite *testsockopt(abts_suite *suite);
 
82
abts_suite *teststr(abts_suite *suite);
 
83
abts_suite *teststrnatcmp(abts_suite *suite);
 
84
abts_suite *testtable(abts_suite *suite);
 
85
abts_suite *testtemp(abts_suite *suite);
 
86
abts_suite *testthread(abts_suite *suite);
 
87
abts_suite *testtime(abts_suite *suite);
 
88
abts_suite *testud(abts_suite *suite);
 
89
abts_suite *testuser(abts_suite *suite);
 
90
abts_suite *testvsn(abts_suite *suite);
 
91
 
 
92
#endif /* APR_TEST_INCLUDES */