mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
torture:fruit: Test timemachine for 0 bands
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
5a560ba489
commit
05d79abdc0
@ -4,6 +4,7 @@
|
||||
# "make test" will not report failures for tests listed here and will consider
|
||||
# a successful run for any of these tests an error.
|
||||
|
||||
^samba3.vfs.fruit_timemachine # this fails as number of band==0 causes divison by 0
|
||||
^samba3.blackbox.failure.failure # this is designed to fail, for testing our test infrastructure
|
||||
.*driver.add_driver_timestamps # we only can store dates, not timestamps
|
||||
^samba3.smbtorture_s3.crypt_server\(nt4_dc\).SMB2-SESSION-REAUTH # expected to give ACCESS_DENIED SMB2.1 doesn't have encryption
|
||||
|
@ -8125,15 +8125,24 @@ static bool test_timemachine_volsize(struct torture_context *tctx,
|
||||
torture_assert_ntstatus_ok_goto(tctx, status, ok, done,
|
||||
"smb2_util_mkdir\n");
|
||||
|
||||
status = smb2_util_roothandle(tree, &h);
|
||||
torture_assert_ntstatus_ok(tctx, status, "Unable to create root handle");
|
||||
|
||||
/* Test that smbd does not crash if number of bands is 0 */
|
||||
ZERO_STRUCT(fsinfo);
|
||||
fsinfo.generic.level = RAW_QFS_SIZE_INFORMATION;
|
||||
fsinfo.generic.handle = h;
|
||||
|
||||
status = smb2_getinfo_fs(tree, tree, &fsinfo);
|
||||
torture_assert_ntstatus_ok(tctx, status, "smb2_getinfo_fs failed");
|
||||
|
||||
/* Setup 2 bands and test again */
|
||||
ok = torture_setup_file(tctx, tree, "test.sparsebundle/bands/1", false);
|
||||
torture_assert_goto(tctx, ok, ok, done, "torture_setup_file failed\n");
|
||||
|
||||
ok = torture_setup_file(tctx, tree, "test.sparsebundle/bands/2", false);
|
||||
torture_assert_goto(tctx, ok, ok, done, "torture_setup_file failed\n");
|
||||
|
||||
status = smb2_util_roothandle(tree, &h);
|
||||
torture_assert_ntstatus_ok(tctx, status, "Unable to create root handle");
|
||||
|
||||
ZERO_STRUCT(fsinfo);
|
||||
fsinfo.generic.level = RAW_QFS_SIZE_INFORMATION;
|
||||
fsinfo.generic.handle = h;
|
||||
|
Loading…
x
Reference in New Issue
Block a user