1 #include <libsmbclient.h>
5 void create_and_destroy_context (void)
9 ctx
= smbc_new_context ();
10 /* Both should do the same thing */
11 smbc_setOptionDebugToStderr(ctx
, 1);
12 smbc_option_set(ctx
, "debug_to_stderr", 1);
13 smbc_setDebug(ctx
, 1);
14 i
= smbc_getDebug(ctx
);
16 printf("smbc_getDebug() did not return debug level set\n");
19 if (!smbc_getOptionDebugToStderr(ctx
)) {
20 printf("smbc_setOptionDebugToStderr() did not stick\n");
23 smbc_init_context (ctx
);
24 smbc_free_context (ctx
, 1);
27 int main (int argc
, char **argv
)
29 create_and_destroy_context ();
30 create_and_destroy_context ();