1 #include "ntdb-source.h"
2 #include "tap-interface.h"
4 int main(int argc
, char *argv
[])
7 plan_tests(NTDB_ERR_RDONLY
*-1 + 2);
9 for (e
= NTDB_SUCCESS
; e
>= NTDB_ERR_RDONLY
; e
--) {
12 ok1(!strcmp(ntdb_errorstr(e
),
16 ok1(!strcmp(ntdb_errorstr(e
),
20 ok1(!strcmp(ntdb_errorstr(e
),
24 ok1(!strcmp(ntdb_errorstr(e
),
28 ok1(!strcmp(ntdb_errorstr(e
),
32 ok1(!strcmp(ntdb_errorstr(e
),
33 "Invalid parameter"));
35 case NTDB_ERR_NOEXIST
:
36 ok1(!strcmp(ntdb_errorstr(e
),
37 "Record does not exist"));
40 ok1(!strcmp(ntdb_errorstr(e
),
41 "write not permitted"));
43 case NTDB_ERR_CORRUPT
:
44 ok1(!strcmp(ntdb_errorstr(e
),
49 ok1(!strcmp(ntdb_errorstr(e
), "Invalid error code"));