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 30 31 32 33 34 35
|
/*
* Drizzle Client & Protocol Library
*
* Copyright (C) 2008 Eric Day (eday@oddments.org)
* All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the COPYING file in this directory for full text.
*/
/**
* @file
* @brief Includes and macros for tests
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libdrizzle/drizzle_client.h>
#include <libdrizzle/drizzle_server.h>
#define drizzle_test(...) do \
{ \
printf(__VA_ARGS__); \
printf("\n"); \
} while (0);
#define drizzle_test_error(...) do \
{ \
printf("*** %s:%d *** ", __FILE__, __LINE__); \
printf(__VA_ARGS__); \
printf("\n"); \
exit(1); \
} while (0);
|