Changeset 124 for branches/samba-3.0/source/torture
- Timestamp:
- Mar 12, 2008, 9:08:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/torture/torture.c
r62 r124 4783 4783 get_nt_error_c_code(NT_STATUS(error))); 4784 4784 } 4785 return True; 4786 } 4787 4788 static BOOL run_sesssetup_bench(int dummy) 4789 { 4790 static struct cli_state *c; 4791 NTSTATUS status; 4792 int i; 4793 4794 if (!(c = open_nbt_connection())) { 4795 return false; 4796 } 4797 4798 if (!cli_negprot(c)) { 4799 printf("%s rejected the NT-error negprot (%s)\n", host, 4800 cli_errstr(c)); 4801 cli_shutdown(c); 4802 return false; 4803 } 4804 4805 for (i=0; i<torture_numops; i++) { 4806 status = cli_session_setup( 4807 c, username, 4808 password, strlen(password), 4809 password, strlen(password), 4810 workgroup); 4811 if (!NT_STATUS_IS_OK(status)) { 4812 d_printf("(%s) cli_session_setup failed: %s\n", 4813 __location__, nt_errstr(status)); 4814 return false; 4815 } 4816 4817 if (!cli_ulogoff(c)) { 4818 d_printf("(%s) cli_ulogoff failed: %s\n", 4819 __location__, cli_errstr(c)); 4820 return false; 4821 } 4822 4823 c->vuid = 0; 4824 } 4825 4785 4826 return True; 4786 4827 } … … 5031 5072 {"FDSESS", run_fdsesstest, 0}, 5032 5073 { "EATEST", run_eatest, 0}, 5074 { "SESSSETUP_BENCH", run_sesssetup_bench, 0}, 5033 5075 { "LOCAL-SUBSTITUTE", run_local_substitute, 0}, 5034 5076 { "LOCAL-GENCACHE", run_local_gencache, 0},
Note:
See TracChangeset
for help on using the changeset viewer.