mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[KMTESTS:CC]
Modify a bit the read test so that it actually fails in ReactOS. It instructs us that when it comes to file boundaries, our Cc fails to properly align read (whereas it should!). This is the behavior exposed by the MS FastFAT. CORE-11003 CORE-11819 svn path=/trunk/; revision=72169
This commit is contained in:
@@ -191,9 +191,9 @@ TestIrpHandler(
|
||||
else if (IoStack->FileObject->FileName.Length >= 2 * sizeof(WCHAR) &&
|
||||
IoStack->FileObject->FileName.Buffer[1] == 'S')
|
||||
{
|
||||
Fcb->Header.AllocationSize.QuadPart = 3000;
|
||||
Fcb->Header.FileSize.QuadPart = 3000;
|
||||
Fcb->Header.ValidDataLength.QuadPart = 3000;
|
||||
Fcb->Header.AllocationSize.QuadPart = 1004;
|
||||
Fcb->Header.FileSize.QuadPart = 1004;
|
||||
Fcb->Header.ValidDataLength.QuadPart = 1004;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -64,6 +64,11 @@ START_TEST(CcCopyRead)
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
ok_eq_hex(((USHORT *)Buffer)[0], 0xBABA);
|
||||
|
||||
ByteOffset.QuadPart = 999990;
|
||||
Status = NtReadFile(Handle, NULL, NULL, NULL, &IoStatusBlock, Buffer, 10, &ByteOffset, NULL);
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
ok_eq_hex(((USHORT *)Buffer)[0], 0xBABA);
|
||||
|
||||
ByteOffset.QuadPart = 1000;
|
||||
Status = NtReadFile(Handle, NULL, NULL, NULL, &IoStatusBlock, Buffer, 2, &ByteOffset, NULL);
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
Reference in New Issue
Block a user