4
* Copyright Ericsson AB 2001-2009. All Rights Reserved.
6
* The contents of this file are subject to the Erlang Public License,
7
* Version 1.1, (the "License"); you may not use this file except in
8
* compliance with the License. You should have received a copy of the
9
* Erlang Public License along with this software. If not, it can be
10
* retrieved online at http://www.erlang.org/.
12
* Software distributed under the License is distributed on an "AS IS"
13
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
* the License for the specific language governing rights and limitations
22
typedef void (*TestCase)(void);
24
#define TESTCASE(name) void name(void)
25
#define ASIZE(a) (sizeof(a)/sizeof(a[0]))
27
void run_tests(char* argv0, TestCase cases[], unsigned number);
30
# define ll(val) (val##LL)
31
#else /* assume gcc or C99 */
32
# define ll(val) (val##i64)
36
# define ull(val) (val##LL)
37
#else /* assume gcc or C99 */
38
# define ull(val) (val##i64)
45
int get_bin_term(ei_x_buff* x, ei_term* term);
46
char *read_packet(int *len);
52
#define fail(reason) do_fail(__FILE__, __LINE__, reason)
53
#define report(ok) do_report(__FILE__, __LINE__, ok)
55
void do_report(char* file, int line, int ok);
56
void do_fail(char* file, int line, char* reason);
57
void send_buffer(char* buf, int size);
58
void message(char* format, ...);
60
void send_bin_term(ei_x_buff* x);