From 27a11ab8b055322826ebffab458e7c15126b3e9f Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 18 Aug 2008 15:16:27 +0000 Subject: [PATCH] Tests exposing several problems with partial writes shorter than the vector size, and partial writes of less than one block. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27041 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../kernel/device_manager/dma_resource_test.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/tests/system/kernel/device_manager/dma_resource_test.cpp b/src/tests/system/kernel/device_manager/dma_resource_test.cpp index 81a4e0fb9c..e79dcf75a2 100644 --- a/src/tests/system/kernel/device_manager/dma_resource_test.cpp +++ b/src/tests/system/kernel/device_manager/dma_resource_test.cpp @@ -829,6 +829,19 @@ run_tests_alignment_restrictions(TestSuiteContext& context) .AddTarget(0, 2048, false) .AddTarget(0, 512, true); + suite.AddTest(0, 51, true, B_PHYSICAL_IO_REQUEST) + .AddSource(0, 4096) + .NextResult(0, false, true) + .AddTarget(0, 512, true); + + suite.AddTest(32, 51, true, B_PHYSICAL_IO_REQUEST) + .AddSource(0, 4096) + .NextResult(0, true, false) + .AddTarget(0, 512, true); + // Note: The operation has actually both partial begin and end, but + // our Test is not clever enough to realize that it is only one + // block and thus only one read phase is needed. + suite.Run(); }