pointcloud/lib/cunit/cu_tester.h
Sandro Santilli aebb3cb0d3 Add test for #28
Involves registering cu_tester specific error handler
2015-02-09 19:55:59 +01:00

23 lines
638 B
C

/***********************************************************************
* cu_tester.h
*
* Testing harness for PgSQL PointClouds header
*
* Portions Copyright (c) 2012, OpenGeo
*
***********************************************************************/
#include "pc_api_internal.h"
#define PC_TEST(test_func) { #test_func, test_func }
#define MAX_CUNIT_MSG_LENGTH 512
/* Contains the most recent error message generated by rterror. */
char cu_error_msg[MAX_CUNIT_MSG_LENGTH+1];
/* 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);