#
2c17ecf9 |
|
01-Jan-2020 |
Kyle Ambroff-Kao <kyle@ambroffkao.com> |
tests/kits/support/bmemoryio: Fix WriteTest This patch fixes a bug in the BMemoryIO unit tests that made them fail and adds an additional test case for read-only buffers. The failing test case invokes BMemoryIO::WriteAt() with the position parameter set to -10, which is invalid and should result in a return value of B_BAD_VALUE. And it does, but the test fails because it was testing for the return value 5, as in 5 bytes copied. An additional test case is added for read-only BMemoryIO objects. If the BMemoryIO(const void*, size_t) constructor is used then it will be marked as read-only, so writes should fail with B_NOT_ALLOWED. Change-Id: Icf4b837c77fba2be958f9d3e4b3adb18a23b037f Reviewed-on: https://review.haiku-os.org/c/haiku/+/2066 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
459a94c1 |
|
27-Sep-2002 |
shatty <shatty@nowhere.fake> |
fixed newline at end of file errors. also fixed small include bug in SupportKitTestAddon.cpp. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1232 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b3d1f5fa |
|
27-Sep-2002 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
More tests for BMemoryIO git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1211 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
14d32cf6 |
|
25-Sep-2002 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
First BMemoryIO tests git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1177 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
459a94c163f127d416a0119993ecc1205b472e0c |
|
27-Sep-2002 |
shatty <shatty@nowhere.fake> |
fixed newline at end of file errors. also fixed small include bug in SupportKitTestAddon.cpp. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1232 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b3d1f5fa245177128bd777c641709bb25e01a148 |
|
27-Sep-2002 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
More tests for BMemoryIO git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1211 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
14d32cf63445154cac3bb892458f5ee264e00e18 |
|
25-Sep-2002 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
First BMemoryIO tests git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1177 a95241bf-73f2-0310-859d-f6bbb57e9c96
|