Changeset 740 for vendor/current/examples/libsmbclient
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- Location:
- vendor/current/examples/libsmbclient
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/examples/libsmbclient/testctx.c
r414 r740 1 1 #include <libsmbclient.h> 2 #include <stdlib.h> 3 #include <stdio.h> 2 4 3 5 void create_and_destroy_context (void) 4 6 { 7 int i; 5 8 SMBCCTX *ctx; 6 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); 15 if (i != 1) { 16 printf("smbc_getDebug() did not return debug level set\n"); 17 exit(1); 18 } 19 if (!smbc_getOptionDebugToStderr(ctx)) { 20 printf("smbc_setOptionDebugToStderr() did not stick\n"); 21 exit(1); 22 } 7 23 smbc_init_context (ctx); 8 9 24 smbc_free_context (ctx, 1); 10 25 } -
vendor/current/examples/libsmbclient/teststat2.c
r414 r740 9 9 * This test is intended to ensure that the timestamps returned by 10 10 * libsmbclient are the same as timestamps returned by the local system. To 11 * test this, we assume a working Samba environment, and a nd access the same11 * test this, we assume a working Samba environment, and access the same 12 12 * file via SMB and locally (or NFS). 13 13 *
Note:
See TracChangeset
for help on using the changeset viewer.