| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#include <config.h> |
| 11 |
|
| 12 |
#include <stdio.h> |
| 13 |
#include <string.h> |
| 14 |
#include <stdlib.h> |
| 15 |
#include "internal.h" |
| 16 |
|
| 17 |
int |
| 18 |
main (int argc, char **argv) |
| 19 |
{ |
| 20 |
const char* table; |
| 21 |
|
| 22 |
table = "tests/tables/attribute/attributeName_invalid.utb"; |
| 23 |
if (lou_getTable(table)) { |
| 24 |
fprintf(stderr, "%s should be invalid\n", table); |
| 25 |
return 1; |
| 26 |
} |
| 27 |
table = "tests/tables/attribute/attributeName_valid.utb"; |
| 28 |
if (!lou_getTable(table)) { |
| 29 |
fprintf(stderr, "%s should be valid\n", table); |
| 30 |
return 1; |
| 31 |
} |
| 32 |
lou_free(); |
| 33 |
return 0; |
| 34 |
} |