* haiku_unittests built on Linux wouldn't support debugger macros,
even though they were running on Haiku.
Change-Id: I5d7832680320c918ed385642bc7cadcc6e53f9c6
* Move SafemodeConditionContext definition from method to the class
because GCC2 can't handle it (possibly because the method
is defined in-line).
Change-Id: If432ddf7fdb044ff5d5b8ca87a20b60489bb7cd7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10682
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
* Ideally we would build these tests using new GCC so we can run them
on GCC2 image.
* We can't do that now because they are shared libraries and mangling
schemes will not match.
Change-Id: Ie8cda81d50831a939d4b55c3760e197b1d83c59c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10670
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
* Use CPPUNIT_TEST(_SUITE) macros and autoregistration.
* Remove unnecessary header files.
* Consolidate Archivable, Autolock, MemoryIO and MallocIO tests into
one .cpp file.
* This structure makes it easier to add new tests - from adding .cpp
and .h + updating Addon.cpp file (3 files), only one .cpp file is
needed now.
* Convert string_utf8 test from standalone app to CppUnit test.
Change-Id: I18d90eb66b7cfc5576626b66ed85e47eb64547bf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10399
Reviewed-by: Kacper Kasper <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
* Conversion from BTestSuite to CppUnit::TestSuite excluded some
test suites due to empty name.
Change-Id: I8ab597df82c8cafd9911415c217e32ecbf7efef6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10352
Reviewed-by: Adrien Destugues <[email protected]>
* Rework ByteOrderTest and DateTimeTest to use autoregistration.
* Functional changes in ByteOrderTest are confirmed in git history
to be R5 compatibility fixes. This doesn't include B_ASCII_TYPE -
it seems it has never been part of is_type_swapped().
* Autoregistered test names start with a number - this is because
RTTI is used to create them. Disabling RTTI is not an option
because CppUnit in our repo has a broken macro which always sets
the name to "ATestFixtureType". This is probably fixed in newer
CppUnit versions.
Change-Id: I56ab5df6e998b6f47fca3c3458a56a761c1740a8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10266
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Kacper Kasper <[email protected]>