test/utils_tests.h

Mon, 21 Jul 2014 13:18:32 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 21 Jul 2014 13:18:32 +0200
changeset 184
5c0990c95f74
parent 177
11ad03783baf
child 192
1e51558b9d09
permissions
-rw-r--r--

added some string tests

142
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
1 /*
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
3 *
177
11ad03783baf go ahead, nothing to see here
Mike Becker <universe@uap-core.de>
parents: 168
diff changeset
4 * Copyright 2014 Olaf Wintermann. All rights reserved.
142
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
5 *
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
6 * Redistribution and use in source and binary forms, with or without
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
7 * modification, are permitted provided that the following conditions are met:
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
8 *
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
9 * 1. Redistributions of source code must retain the above copyright
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
10 * notice, this list of conditions and the following disclaimer.
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
11 *
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
12 * 2. Redistributions in binary form must reproduce the above copyright
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
13 * notice, this list of conditions and the following disclaimer in the
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
14 * documentation and/or other materials provided with the distribution.
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
15 *
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
26 * POSSIBILITY OF SUCH DAMAGE.
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
27 */
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
28
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
29 #ifndef UTILS_TESTS_H
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
30 #define UTILS_TESTS_H
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
31
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
32 #include "ucx/test.h"
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
33 #include "ucx/utils.h"
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
34
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
35 #ifdef __cplusplus
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
36 extern "C" {
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
37 #endif
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
38
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
39 UCX_TEST(test_ucx_fprintf);
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
40 UCX_TEST(test_ucx_asprintf);
168
24a012440dee completed buffer tests
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
41 UCX_TEST(test_ucx_stream_copy);
142
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
42
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
43 #ifdef __cplusplus
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
44 }
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
45 #endif
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
46
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
47 #endif /* UTILS_TESTS_H */
ee8cb27d8b8e added printf functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
48

mercurial