// Perform the test virtual void test() { // Init random generator. for (uint i = 0; i < 100; i++) cOSRand::rand(); // Start tests test_remote_address(); test_read_write(); test_seek(); }
/* basic testing of seek calls */ BOOL torture_raw_seek(struct torture_context *torture) { struct smbcli_state *cli; BOOL ret = True; TALLOC_CTX *mem_ctx; if (!torture_open_connection(&cli, 0)) { return False; } mem_ctx = talloc_init("torture_raw_seek"); if (!test_seek(cli, mem_ctx)) { ret = False; } torture_close_connection(cli); talloc_free(mem_ctx); return ret; }
ATF_TC_BODY(seek_nsec3, tc) { test_seek(tc); }
ATF_TC_BODY(seek, tc) { test_seek(tc); }