Merge in trunk. Updates to manual/update to latest libtest.
[awesomized/libmemcached] / libtest / error.h
1 /* uTest Copyright (C) 2011 Data Differential, http://datadifferential.com/
2 *
3 * Use and distribution licensed under the BSD license. See
4 * the COPYING file in the parent directory for full text.
5 */
6
7 #pragma once
8
9 enum test_return_t {
10 TEST_SUCCESS= 0, /* Backwards compatibility */
11 TEST_FAILURE,
12 TEST_MEMORY_ALLOCATION_FAILURE,
13 TEST_SKIPPED,
14 TEST_FATAL // Collection should not be continued
15 };
16
17
18 #define test_failed(__test_return_t) ((__test_return_t) != TEST_SUCCESS)