2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-01-25 06:22:11 +00:00
Commit Graph

22 Commits

Author SHA1 Message Date
Flamefire
b98cdaa47a Include 'Remove uneccessary cast in test_swap
The cast is actually wrong as the return value of  is  already.'
2022-07-13 11:25:19 +00:00
Flamefire
495bbcc11f Include 'Merge pull request #161 from Flamefire/coverity
Fix coverity build'
2022-06-14 15:16:16 +00:00
Flamefire
fccb720589 Include 'Fix update of standalone branch
Use regular rm because  ignores untracked files'
2021-12-21 14:46:45 +00:00
Flamefire
c70aa022f2 Include 'Merge pull request #97 from Flamefire/upgradeToCxx11
Upgrade to C++11'
2020-05-28 06:43:51 +00:00
Flamefire
5b8bb5d115 Include 'Merge pull request #96 from boostorg/test_standalone
Automatically update standalone branch'
2020-05-13 14:11:33 +00:00
Alexander Grund
6afb3f15ab Deduplicate tests and improve coverage
Every test had the same pattern of a main catching exceptions and
returning 0 or 1 based on that. Factor that into test.hpp.
As most code in test.hpp is only executed on failure and those should
not occur this file is excluded from coverage.

Finally test.hpp is included last and the header to test first
consistently to check for self-sufficient includes.
2020-04-03 16:28:28 +02:00
Alexander Grund
7474cb8b4a Avoid CRT_SECURE_WARNINGS on clang-win 2020-02-24 18:00:48 +01:00
Alexander Grund
7854435d8e Switch pointer alignment to left
Consistency with rest of boost
2020-01-07 21:27:26 +01:00
Alexander Grund
bb2487351f Use west-const
Almost all of boost does, so be nice stay consistent
2020-01-07 21:26:12 +01:00
Alexander Grund
1168f607bb Remove vim format tags 2020-01-07 19:41:33 +01:00
Alexander Grund
956ecbf6d1 Use pragma instead of _CRT_SECURE_NO_WARNINGS
Allows to detect missing suppressions in headers
2020-01-02 18:47:57 +01:00
Alexander Grund
1bff7b670c Remove usage of Boost.LightweightTest
Tests assume TEST terminates execution on failure which is not how BLWT behaves
2020-01-02 18:47:46 +01:00
Alexander Grund
5c684c0fe6 Combine cenv and system to cstdlib
Follows the C++ headers
2020-01-02 18:47:45 +01:00
Alexander Grund
16d98b0f15 Cleanup includes 2020-01-02 18:47:40 +01:00
Flamefire
3bd6eed183 Enforce uniform formatting via clang-format 2019-12-28 16:02:31 +01:00
Flamefire
2988c60f61 Handle failure in putenv caused by GLIBC extension
The GNU C library implementation provides a nonstandard extension.
If string does not include an equal sign:

putenv("NAME");

then the named variable is removed from the caller's environment.
http://man7.org/linux/man-pages/man3/putenv.3.html
2019-12-14 15:47:53 +01:00
Flamefire
035a21bc9e Add test for putenv without equals sign
Reproducer for #14
2019-12-14 15:47:53 +01:00
Flamefire
f213fd90f4 Fix exception path of tests
Even in case of exceptions boost::report_errors has to be called
2019-12-13 19:24:44 +01:00
Peter Dimov
6df39fc829 Switch back to using test.hpp in tests 2019-12-04 16:29:56 +02:00
Peter Dimov
ac7b93b55d Use lightweight_test 2019-12-03 16:21:45 +02:00
Peter Dimov
8dc69504ca Disable MS deprecation messages using _CRT_SECURE_NO_WARNINGS, because this works for clang-cl as well 2019-12-03 04:46:53 +02:00
Artyom Beilis
bfbca14bd3 Moved various files according to new boost format 2015-10-01 18:57:14 +03:00