Commit Graph

802 Commits

Author SHA1 Message Date
Martchus 82816d7653 Fix creating new file if using NativeFileStream with ios_base::out 2018-11-02 23:06:30 +01:00
Martchus 757a3476cc test utilities: Print testfile path in all cases 2018-11-02 22:36:22 +01:00
Martchus 98edb5a67c Allow omitting second fraction in DateTime::fromIsoString 2018-11-01 20:20:32 +01:00
Martchus 44e4d1335a Fix Traits::IsSpecializationOf to ignore cv qualifier
So eg. const/volatile std::string is also considered a
specialization of std::basic_string like one would expect.
2018-10-29 23:16:16 +01:00
Martchus 34eac527ee Log actual application path when testing 2018-10-25 18:20:14 +02:00
Martchus ca6663a6d5 Prevent breaking source compatibility of TESTUTILS_ASSERT_EXEC 2018-10-21 21:21:01 +02:00
Martchus 6825e0367f Test Traits::HasOperatorBool 2018-10-21 21:14:51 +02:00
Martchus c0f74e4c89 Add BOOST_IOSTREAMS_DYN_LINK to compile defs
if linking dynamically against Boost.Iostreams
2018-10-21 20:24:55 +02:00
Martchus 66b4b782cd Improve TESTUTILS_ASSERT_EXEC to print stdout/stderr on failure 2018-10-21 20:22:43 +02:00
Martchus cad2977e4e Add Traits::HasOperatorBool 2018-10-21 20:21:28 +02:00
Martchus 4ca32e14dc Use set_property instead of set_source_files_properties
since it allows to append which is what should actually happen
2018-10-17 17:34:46 +02:00
Martchus 71f41e4871 Add link to findicons 2018-10-15 17:42:51 +02:00
Martchus 366f722904 Fix documentation for workingCopyPath() 2018-10-07 21:43:34 +02:00
Martchus 17fc55a2c6 Fix compilation of testutils under Windows without NativeFileStream 2018-10-07 21:14:56 +02:00
Martchus c66420b1dc Remove target to launch tests with wine
This wasn't of much use. One can just use `make
check` and set WINEPATH before manually.
2018-10-07 20:04:31 +02:00
Martchus 7c4cd6ee7d Set permissions to 644 when creating a file via open() 2018-10-07 19:16:41 +02:00
Martchus 7b04bd8ef5 Fix building NativeFileStream with libc++
Note: std::iostream has no default c'tor according to
the standard (although a protected default c'tor is
provided by libstdc++).
2018-10-07 19:13:57 +02:00
Martchus 8e32fc0229 Apply clang-format 2018-10-06 16:18:53 +02:00
Martchus 929c817c08 Test test utilities not used anyways 2018-10-06 16:18:46 +02:00
Martchus 61edf58c3e Fix workingCopyPathMode 2018-10-06 16:18:39 +02:00
Martchus 517ef59e14 Prevent livetime issue in ArgumentValueConversionError
Breaking API/ABI is ok since this is part of experimental
ValueConversion namespace.
2018-10-03 22:40:04 +02:00
Martchus 5356d793fc Make all tests pass under Windows
* Workaround some issues
* Disable some tests (better than not running tests
  at all)
2018-10-03 22:37:55 +02:00
Martchus 8e3c40abb5 Make conversion from multi byte to wide string generic 2018-10-03 21:26:41 +02:00
Martchus d1f3f51769 Disable not working test for random under Windows
The function will be removed in next major release anyways.
2018-09-30 14:48:11 +02:00
Martchus 199a4f9454 Make conversion tests pass under Windows 2018-09-30 14:44:39 +02:00
Martchus ac6b7ae68e Fix some of the IO tests to pass under Windows
Still, the workaround for catching std::ios_base::failure
doesn't seem to work.
2018-09-30 14:40:16 +02:00
Martchus c1cc495908 Fix typo 2018-09-30 14:23:37 +02:00
Martchus e023c1af79 Declare throwIoFailure() as [[noreturn]] 2018-09-30 13:56:25 +02:00
Martchus 25ef4e28a2 Make tests compile under Windows 2018-09-30 13:55:30 +02:00
Martchus 749eea2ab6 Support NativeFileStream via Boost.Iostreams
So it can also be enabled when not using libstdc++.
2018-09-30 13:55:30 +02:00
Martchus f60f79d6f3 Make docstring for USE_NATIVE_FILE_BUFFER more generic
Since the build option no longer only relates to Windows.
2018-09-29 11:59:30 +02:00
Martchus 3c02ad6d92 Fix check for source files 2018-09-24 22:39:09 +02:00
Martchus 252e91c819 Unify namespace descriptions 2018-09-22 17:04:55 +02:00
Martchus 3d3378c878 Improve experimental value conversion for arg parser
* Fix issues and handle conversion errors
* Add tests
2018-09-22 17:04:23 +02:00
Martchus 3a14d39a14 Add conversion from const char* to float/double
Previously only conversion from std::string to float/double
was possible.
2018-09-22 16:47:44 +02:00
Martchus a6eefc3ab6 Fix documentation of string conversion functions 2018-09-22 16:46:48 +02:00
Martchus 651720552e Replace typedef's with using
* Except in code which will be discarded in v5 anyways
* Should not affect source and binary compatibility
2018-09-22 16:41:33 +02:00
Martchus 12f12ae3f9 Update documentation 2018-09-18 23:57:35 +02:00
Martchus 2186ce15d9 Use using instead of typedef 2018-09-16 00:25:16 +02:00
Martchus 3a65e3ecdd Adjust CMake modules for better Android support 2018-09-16 00:25:04 +02:00
Martchus 5c9a834236 Implement NativeFileStream under Unix/Linux/Android as well
* Like the Windows implementation this is disabled by default and
  can be enabled via compile-time switch which will affect the ABI.
* Add support for opening a file from a file descriptor.
2018-09-05 00:21:40 +02:00
Martchus 826c43ef8b Include missing cerrno 2018-08-12 22:17:09 +02:00
Martchus 61f7ce90e1 Improve coding style (after running clang-tidy) 2018-08-12 22:09:22 +02:00
Martchus d0bf2fb390 Add more debug output to TestApplication::workingCopyPathMode 2018-08-11 22:21:48 +02:00
Martchus d82e7bb869 Fix warning regarding multi-line comment 2018-08-04 15:20:54 +02:00
Martchus 2347677495 Adjust name of working copy until unique if unable to override 2018-07-28 20:51:25 +02:00
Martchus f50321f414 Improve coding style in testutils.cpp 2018-07-28 20:00:28 +02:00
Martchus 0f45817956 Make output of workingCopyPathMode() even more verbose 2018-07-28 19:39:11 +02:00
Martchus c53472fdce Make failing TestApplication::workingCopyPathMode() more verbose 2018-07-28 15:59:31 +02:00
Martchus 93d6fb5d88 Reduce indentation in ListToString 2018-07-27 16:30:11 +02:00