2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-02-21 15:12:30 +00:00
Commit Graph

18 Commits

Author SHA1 Message Date
Alexander Grund
6bfbde5c24 Improve test_system
Split parent and child code into functions for better output
Introduce TEST_EQUAL for better output
Compare each entry in env-pointer and argv

Don't check env-pointer values against getenv() as they might differ:
When launching the program from e.g. bash with `temp=bar`then there is
TEMP and temp in the list (env-pointer) but getenv/GetEnvironmentVariable
is case insensitive picking up the first matching value.
2020-04-03 16:21:15 +02:00
Alexander Grund
c6241c917b Workaround for empty environment variables
On AzP the test fails due to BUILD_REQUESTEDFOREMAIL= being in the env
pointer but not in the environment.
On Windows a "set FOO=" UNsets FOO so empty values are likely not part
of the environment, hence don't check via getenv for those.

Add a test including an empty env variable.
2020-03-28 18:44:37 +01:00
Alexander Grund
58773bbcf3 Add debug output to test_system 2020-03-28 17:51:44 +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
afe7304f29 Use define instead of commandline switch for test_system 2020-01-07 19:41:33 +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
1d50c27dce Fix some warnings 2019-12-18 14:47:14 +01:00
Flamefire
f2e95fc899 Remove trailing whitespace 2019-12-14 15:47:01 +01:00
Flamefire
7549c80457 Include C++ headers instead of C variants 2019-12-14 13:35:37 +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
Artyom Beilis
bfbca14bd3 Moved various files according to new boost format 2015-10-01 18:57:14 +03:00