blob: ed61bb3026a497b8b9352b70c6d4d831fadb5d68 (
plain)
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
|
#include <stdio.h>
#include <stdlib.h>
#include <hubbub/hubbub.h>
#include "testutils.h"
static void *myrealloc(void *ptr, size_t len, void *pw)
{
UNUSED(pw);
return realloc(ptr, len);
}
int main(int argc, char **argv)
{
if (argc != 2) {
printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
assert(hubbub_initialise(argv[1], myrealloc, NULL) == HUBBUB_OK);
assert (hubbub_finalise(myrealloc, NULL) == HUBBUB_OK);
printf("PASS\n");
return 0;
}
|