~trond-norbye/libmemcached/compile-fixes

« back to all changes in this revision

Viewing changes to libtest/error.h

  • Committer: Brian Aker
  • Date: 2011-06-24 20:09:30 UTC
  • mfrom: (929.1.155 libmemcached-build)
  • Revision ID: brian@tangent.org-20110624200930-m268yogmnpyzs3qj
Merge in trunk. Updates to manual/update to latest libtest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)