File: cu_tester.h

package info (click to toggle)
pgpointcloud 1.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,892 kB
  • sloc: sql: 40,767; ansic: 11,045; xml: 935; makefile: 297; cpp: 282; perl: 248; python: 178; sh: 92
file content (29 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/***********************************************************************
 * cu_tester.h
 *
 *        Testing harness for PgSQL PointClouds header
 *
 * Portions Copyright (c) 2012, OpenGeo
 *
 ***********************************************************************/

#ifndef _CU_TESTER_H
#define _CU_TESTER_H

#include "pc_api_internal.h"

#define PC_TEST(test_func)                                                     \
  {                                                                            \
#test_func, test_func                                                      \
  }
#define MAX_CUNIT_MSG_LENGTH 512
#define CU_ASSERT_SUCCESS(rv) CU_ASSERT((rv) == PC_SUCCESS)
#define CU_ASSERT_FAILURE(rv) CU_ASSERT((rv) == PC_FAILURE)

/* Read a file (XML) into a cstring */
char *file_to_str(const char *fname);

/* Resets cu_error_msg back to blank. */
void cu_error_msg_reset(void);

#endif