Revert "break test_delayed_write_update with a PATHINFO call..."
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Aug 2018 18:08:25 +0000 (20:08 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 15 Aug 2018 18:08:25 +0000 (20:08 +0200)
This reverts commit 713123bda5075672afcb211a6742950ad968b146.

source4/torture/basic/delaywrite.c

index 1c11c9e26f89cab2a84a89a8da86112687e8b3de..4008df680eaa0a85418382f2e03fa1a052f3fffd 100644 (file)
@@ -37,7 +37,6 @@
 static bool test_delayed_write_update(struct torture_context *tctx, struct smbcli_state *cli)
 {
        union smb_fileinfo finfo1, finfo2;
-       union smb_fileinfo pinfo1;
        const char *fname = BASEDIR "\\torture_file.txt";
        NTSTATUS status;
        int fnum1 = -1;
@@ -72,11 +71,6 @@ static bool test_delayed_write_update(struct torture_context *tctx, struct smbcl
        torture_assert_int_equal(tctx, written, 1,
                                 "unexpected number of bytes written");
 
-       pinfo1.basic_info.level = RAW_FILEINFO_BASIC_INFO;
-       pinfo1.basic_info.in.file.path = fname;
-       status = smb_raw_pathinfo(cli->tree, tctx, &pinfo1);
-       torture_assert_ntstatus_ok(tctx, status, "pathinfo failed");
-
        start = timeval_current();
        end = timeval_add(&start, (120 * sec), 0);
        while (!timeval_expired(&end)) {