#
65413546 |
|
15-Jan-2020 |
Kyle Ambroff-Kao <kyle@ambroffkao.com> |
support/BPath: Flatten should work on empty BPath BPath::Flatten() on an empty path returns B_OK in BeOS R5, just writing an empty entry_ref to the povided buffer. The Haiku implementation has some additional validation that causes B_NO_INIT to be returned instead. This patch attempts to recreate the same behavior of BeOS in this situation. * Don't check for initialization in BPath::Flatten(). Instead, just write an empty entry_ref to the provided buffer if the BPath is empty. * Fix estimation of expected size when testing the return value of BPath::FlattenedSize(). * Clean up warning by removing unecessary forward-declaration of CppUnit::Test. Change-Id: I88880cbb298bdcb594c9c8fef48314165c49e9e5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2115 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
|
#
155b583a |
|
09-Nov-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Fixed unit tests build for platforms libbe_test and r5. Only randomly tested a few whether they actually work. New pseudo target "unittests", which builds all unit tests for the currently set TARGET_PLATFORM. They are placed in generated/tests/<platform>/unittests. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14791 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d1f6c38f |
|
17-Jul-2002 |
Tyler Dauwalder <tylerdauwalder@nowhere.fake> |
Unit testing update: - Verbosity is now honored globally - Added BTestCase::Outputf() - Migrated BNode, BStatable, BDirectory, and BPath tests - Added CommonTestLib, TestLib, and R5TestLib rules to Jamrules - Updated Jamfiles for unit testing stuff - Probably a few other things I've forgotten git-svn-id: file:///srv/svn/repos/haiku/trunk/current@269 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
52a38012 |
|
08-Jul-2002 |
ejakowatz <ejakowatz@nowhere.fake> |
It is accomplished ... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
155b583ac369749fdfae25f419056389ec7eb16e |
|
09-Nov-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Fixed unit tests build for platforms libbe_test and r5. Only randomly tested a few whether they actually work. New pseudo target "unittests", which builds all unit tests for the currently set TARGET_PLATFORM. They are placed in generated/tests/<platform>/unittests. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14791 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d1f6c38f0d8029fda3c77d45dde4c9fa53e2e75b |
|
17-Jul-2002 |
Tyler Dauwalder <tylerdauwalder@nowhere.fake> |
Unit testing update: - Verbosity is now honored globally - Added BTestCase::Outputf() - Migrated BNode, BStatable, BDirectory, and BPath tests - Added CommonTestLib, TestLib, and R5TestLib rules to Jamrules - Updated Jamfiles for unit testing stuff - Probably a few other things I've forgotten git-svn-id: file:///srv/svn/repos/haiku/trunk/current@269 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
52a380120846174213ccce9c4aab0dda17c72083 |
|
08-Jul-2002 |
ejakowatz <ejakowatz@nowhere.fake> |
It is accomplished ... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
|