From line 695 of torture/basic/base.c in run_deferopen(), the test case deletes the test file and checks for server response: if (NT_STATUS_IS_ERR(smbcli_unlink(cli->tree, fname))) { /* All until the last unlink will fail with sharing violation. */ if (!NT_STATUS_EQUAL(smbcli_nt_error(cli->tree),NT_STATUS_SHARING_VIOLATION)) { torture_comment(tctx, "unlink of %s failed (%s)\n", fname, smbcli_errstr(cli->tree)); correct = false; } } But it's possible that a Windows server may also return NT_STATUS_OBJECT_NAME_NOT_FOUND for the smbcli_unlink request. This is because the file may have been successfully deleted by another test process (of this function) after this test process closes the file at the end of the last test loop. The test case should also check for NT_STATUS_OBJECT_NAME_NOT_FOUND as a valid server response.
Should be fixed through a patch from me.