Commit Graph

146 Commits

Author SHA1 Message Date
Peter Dimov
7f98fa58eb Refactor test/Jamfile 2018-01-21 18:21:34 +02:00
Peter Dimov
5866fbb2b2 Do not test boost::throws() under -fsanitize=undefined 2018-01-21 17:38:01 +02:00
Peter Dimov
f89fe0ea77 Merge branch 'develop' into feature/constexpr 2018-01-18 15:03:07 +02:00
Peter Dimov
b494f307b5 Fix g++ 4.4 again 2018-01-18 00:01:17 +02:00
Peter Dimov
344df6c0a0 Add support for g++ 4.4 to test/Jamfile 2018-01-17 19:06:44 +02:00
Peter Dimov
7b6dcf6ac6 Make error_code, error_condition literal if C++14 constexpr is available 2018-01-14 07:24:00 +02:00
Peter Dimov
f8ef12bcc4 Add before_main_test. 2018-01-14 05:29:02 +02:00
Peter Dimov
c3da8661dc Add test that checks for duplicate category instances 2018-01-14 05:10:44 +02:00
Peter Dimov
f69e195aaf Do not link to the library for the header-only tests 2018-01-14 04:56:58 +02:00
Peter Dimov
a4955ec9c1 Test header-only w/ BOOST_NO_ANSI_APIS 2017-11-01 20:34:53 +02:00
Peter Dimov
829a1320a7 Replace BOOST_SYSTEM_NO_DEPRECATED with BOOST_SYSTEM_ENABLE_DEPRECATED 2017-10-21 19:19:57 +03:00
Beman
e039a454cf Hand add the fix from github.com/boostorg/system/pull/12. Note: This fix was verified by testing in release mode with clang 4.0 on Linux. It crashed before applying the P/R and passed afterwards. The pull request was applied by hand to add some new comments and do some other minor code rearrangements. Thanks to Visigoth for the P/R. 2017-09-07 16:36:48 -04:00
Beman
1bb5b95ebd Rewrite the boost::throws() reference documentation. Add tests of boost::throws() using the divide() function from the reference documentation. Having tests will allow us to change the implementation of throws() without fear of silently breaking it. 2017-09-07 15:00:26 -04:00
Peter Dimov
d0fe891bb3 Add 'quick' test target 2017-09-05 04:52:08 +03:00
Peter Dimov
a0fb1f2d41 Simplify 03/11 mismatch test because of MinGW; message() doesn't work 2017-07-24 12:29:32 +03:00
Peter Dimov
2f413abd8d Add more 03/11 mismatch tests 2017-07-24 05:15:49 +03:00
Peter Dimov
fe59bbdb3d Add 03/11 mismatch tests 2017-07-24 04:52:55 +03:00
Peter Dimov
2649b7e4a6 Merge branch 'develop' 2017-06-22 21:56:51 +03:00
Peter Dimov
d6c950f534 Add missing #include 2017-06-22 18:09:33 +03:00
Peter Dimov
473cf5ef91 Add import testing to test/Jamfile 2017-06-13 20:12:21 +03:00
Peter Dimov
ef2b755d77 Fix <winerror.h> include in error_code_test on cygwin/mingw 2017-06-13 19:34:28 +03:00
Peter Dimov
1ad099291d Add required #include 2017-06-13 19:22:48 +03:00
Beman
4736079b2e Fix boost::detail::winapi::ERROR_INSUFFICIENT_BUFFER_ in error_code.ipp (Thanks to Lastique). Use <boost/detail/winapi/error_codes.hpp> in windows_error.hpp. Add msvc project to build header-only version of error_code_test. 2017-06-04 11:01:08 -04:00
Beman
9087c92cc7 Add std_interop_test to msvc solution. Add cout message indicating whether or not inter-operation will be tested. 2017-06-03 08:22:04 -04:00
Beman
4626b887be #define _CRT_SECURE_NO_WARNINGS to avoid spurious VC++ warning 2017-05-28 16:34:24 -04:00
Peter Dimov
02262a4048 Test a user-defined error condition category; improve equivalent 2017-05-21 01:25:09 +03:00
Peter Dimov
bdd1613898 Do not map system::generic to std::generic directly 2017-05-20 19:33:03 +03:00
Peter Dimov
2d18f66800 Try to fix g++ 4.x issue with generic_category 2017-05-20 18:43:31 +03:00
Peter Dimov
b722a1ebda Add a few more std interop tests 2017-05-20 15:53:02 +03:00
Peter Dimov
96db439aef Test exact generic condition values 2017-05-20 15:07:48 +03:00
Peter Dimov
044c0565b9 Add test for std interop; implement equivalent 2017-05-20 14:33:54 +03:00
Beman
a4120cdf1d Upgrade to Visual Studio 2017 2017-04-02 08:01:19 -04:00
Beman
504c5e95ee Merge branch 'develop' 2017-02-17 06:49:49 -05:00
Beman
dc985cb3bc Clean up some sloppy include guards that were clashing with other Boost projects 2017-01-23 17:08:17 -05:00
Beman
69252d03b1 Upgrade to VC++ 14.0 2015 2015-01-19 14:11:39 -05:00
Beman
db3dd13fb6 Rename test/system directory to test/msvc 2015-01-19 14:09:21 -05:00
Beman
e5da5ce2cf Merge remote-tracking branch 'remotes/origin/develop' 2015-01-06 11:08:27 -05:00
Beman
dcf45d36e5 Neither MinGW or Cygwin versions of winerror.h work if used alone, so on either of these platforms include the full windows.h. Move reporting of configuration to a separate config_test.cpp program, and expand the coverage to report more macros. 2014-08-03 13:44:11 -07:00
Beman
9379d94b2a Show value of BOOST_PLAT_WINDOWS_DESKTOP 2014-08-02 08:11:13 -04:00
Beman
800fce3aaf Neither MinGW or Cygwin versions of winerror.h work if used alone, so on either of these platforms include the full windows.h. Move reporting of configuration to a separate config_test.cpp program, and expand the coverage to report more macros. 2014-08-01 10:49:40 -04:00
Beman
0d0e14b3c5 Show more macros as defined or not defined to aid regression test interpretation. 2014-08-01 07:19:58 -04:00
Beman
3ec7345ba1 Merge branch 'develop' 2014-07-19 14:14:26 -04:00
Beman Dawes
25e79b3492 Merge pull request #3 from MSOpenTech/winrt
[winrt support] Changes to make Boost System work on the Windows Runtime.
2014-06-04 11:06:40 -04:00
Beman
5a29c4458d Merge branch 'develop'
Conflicts:
	doc/reference.html
	include/boost/system/error_code.hpp
	test/system/error_code_test/error_code_test.vcxproj
	test/system/system-dll/system-dll.vcxproj
	test/system_msvc/system_msvc.sln
2014-06-02 08:14:58 -04:00
Beman
44c3566380 Update to Visual Studio 2013 2014-05-31 13:56:43 -04:00
Steve Gates
9c23522b73 Changes to make Boost System work on the Windows Runtime.
Basically just use FormatMessageW without FORMAT_MESSAGE_FROM_SYSTEM.
2014-05-27 12:28:13 -07:00
Beman
d77fd95f8a Initial commit VC++ 2012 test solution 2014-01-06 17:41:36 -05:00
Beman
199c0cfb0b Remove legacy VC++ solution. Easier to rebuild from scratch. 2014-01-06 15:33:39 -05:00
Beman
21563d532f Meaningless extra line added just to test modular boost. 2013-12-02 13:54:25 -05:00
Vicente J. Botet Escriba
ec4d3bc41e System/FileSystem: merge from trunk to fix #7278.
[SVN r83550]
2013-03-24 20:20:29 +00:00
Beman Dawes
08ea984237 Use C++11 explicit conversion operator if available
[SVN r83210]
2013-02-28 20:55:07 +00:00
Vicente J. Botet Escriba
65e14ff167 System/FileSystem/Asio/Thread: ref #7278 Added noexcept to Boost.System to conform with C++11
[SVN r81808]
2012-12-09 14:47:39 +00:00
Beman Dawes
8fbde538f3 Add some infrastructure
[SVN r80281]
2012-08-28 14:53:18 +00:00
Beman Dawes
dc61a075b2 Add some infrastructure
[SVN r80280]
2012-08-28 14:51:55 +00:00
Beman Dawes
5430d82f9f System: merge trunk
[SVN r78528]
2012-05-21 13:39:58 +00:00
Beman Dawes
7671b1291c Tighten config.hpp and Jamfile logic before attaching static build problems.
[SVN r77997]
2012-04-15 19:16:49 +00:00
Beman Dawes
7ffc036bc2 Merge trunk, including changes to come into closer conformance with C++0x FCD
[SVN r63685]
2010-07-06 10:47:30 +00:00
Beman Dawes
baae3a392a Upgrade system and filesystem to conform system_category and generic_category interface to N3090, the current C++0x working paper, section 19.5, System error support.
Refactor API macros into a new header, boost/system/api_config.hpp.

Prohibit user definition of API macros. Rationale: ensure all translation units use same definitions, cut number of environments that need to be tested.

[SVN r62313]
2010-05-30 15:38:32 +00:00
Beman Dawes
6e8039cb2d fix lightweight test boo boo (Thanks to Peter Dimov)
[SVN r62149]
2010-05-22 16:10:49 +00:00
Beman Dawes
2bb0075e3f Major upgrade to Boost.Config symbol visibility macros for shared libraries, based on patches from Jürgen Hunold with mods by Beman Dawes. Upgrade Boost.System to use the new visibility macros. Fixes #3697 and provides foundation for fixing 2114, 2309, etc.
[SVN r62140]
2010-05-22 12:12:00 +00:00
Douglas Gregor
eeb5844852 Merge standards-conformance fix for Boost.System
[SVN r61862]
2010-05-09 00:33:44 +00:00
Douglas Gregor
ae67c86d2b Fix a standards-conformance problem where we default-initialize a const object of non-POD class type without a user-declared default constructor
[SVN r61672]
2010-04-29 04:58:39 +00:00
Beman Dawes
2f6659f39e Fix #3927
[SVN r59673]
2010-02-13 17:08:39 +00:00
Beman Dawes
fd0605bd7e System, Filesystem: remove boost/detail/test_framework.hpp; use boost/detail/lightweight_test.hpp instead (Thanks to Peter Dimov for pointing this out)
[SVN r51966]
2009-03-25 12:11:47 +00:00
Beman Dawes
83db702d99 System: removed dependency on Boost.Test
[SVN r51960]
2009-03-24 15:38:10 +00:00
Beman Dawes
99ee7ddaab System: rename msvc_system -> system->msvc so VC++ start page recent solutions list is easier to use
[SVN r49716]
2008-11-13 15:57:04 +00:00
Beman Dawes
84ff2d0f04 Initial commit: system/test/msvc_system
[SVN r49090]
2008-10-01 18:24:20 +00:00
Beman Dawes
b7cd247b64 Remove redundant Jamfile <define>s
[SVN r49080]
2008-10-01 14:14:58 +00:00
Beman Dawes
a97517585c Add const char* constructors to system_error, rationalize test coverage
[SVN r46678]
2008-06-25 14:16:59 +00:00
Beman Dawes
98a757dbf7 Fix ticket #1609
[SVN r45830]
2008-05-27 20:01:15 +00:00
Beman Dawes
fcdecd4c96 Remove extraneous defines since they are inherited from library build Jamfile
[SVN r42873]
2008-01-20 02:01:35 +00:00
Beman Dawes
966931ad20 Include system-specific headers, change namespaces accordingly.
[SVN r41040]
2007-11-12 17:42:42 +00:00
Beman Dawes
04a62ca2b1 Add separate headers for system-specific enums, thus reducing coupling. Suggested by Emil Dotchevski.
[SVN r41033]
2007-11-12 15:22:24 +00:00
Beman Dawes
8d33f005b0 Borland appends newline, so just check text
[SVN r40926]
2007-11-08 12:35:50 +00:00
Beman Dawes
f9cbc5a384 Cope with larger errno on 64-bit systems
[SVN r40918]
2007-11-08 02:55:21 +00:00
Beman Dawes
d8116dd036 Remove prematurely committed portion of prior change
[SVN r40825]
2007-11-06 02:54:29 +00:00
Beman Dawes
c517a05702 Make message test conditional for Windows, Linux, HP-UX, OSF, and VMS (Boris Gubenko)
[SVN r40824]
2007-11-06 02:29:50 +00:00
Beman Dawes
c4ded309f8 Add message display to illuminate why aCC fails Unknown error test
[SVN r40782]
2007-11-05 12:36:41 +00:00
Beman Dawes
fdeda4c580 Workaround MingW doesn't supply GetUserDefaultUILanguage
[SVN r40744]
2007-11-04 17:18:53 +00:00
Beman Dawes
323dfd55a5 glibc++ may append unknown error value, so only test first part of string
[SVN r40738]
2007-11-04 15:32:03 +00:00
Beman Dawes
e0c466534b Detect Windows FormatMessage errors, standardize message() return on message-not-found errors
[SVN r40710]
2007-11-03 00:49:07 +00:00
Beman Dawes
6b89c517f9 Limit Windows expected message check to US English
[SVN r39609]
2007-09-29 19:40:23 +00:00
Beman Dawes
35374bcb3d Turns out the --dep_name errors were due to functions in the wrong namespace (Chris Kohlhoff)
[SVN r39553]
2007-09-26 17:48:27 +00:00
Christopher Kohlhoff
4a364b1532 Use a switch rather than an array to translate system_category error codes to their corresponding default error conditions. Add translations for the Winsock error codes.
[SVN r39502]
2007-09-24 12:53:37 +00:00
Beman Dawes
2aa7ebf758 Fix order-of-initialization problem, add initialization_test.cpp to detect regression.
[SVN r39449]
2007-09-21 16:42:27 +00:00
Beman Dawes
a9e9f426cc Some compilers require all of the make_error_* functions be template specializations. See prior log message.
[SVN r39438]
2007-09-21 11:45:23 +00:00
Beman Dawes
f114239d60 Missing std added to ::remove to clear problem in Sun tests
[SVN r39292]
2007-09-15 01:36:14 +00:00
Beman Dawes
19892ad06b Remove <runtime-link>static to see if that is what is causing link problems on a few gcc platforms
[SVN r39255]
2007-09-14 02:00:25 +00:00
Beman Dawes
0a283a8f00 Ensure error_category::operator< test works regardless of how compiler lays out memory.
[SVN r39248]
2007-09-13 21:47:25 +00:00
Beman Dawes
0af65ce63f Ha! Finally figured out how to shut off msvc exception switch warning. Also fix define misspelling.
[SVN r39188]
2007-09-11 02:07:50 +00:00
Beman Dawes
e062aaff2f Posix and Linux fixes
[SVN r39174]
2007-09-09 17:48:17 +00:00
Beman Dawes
04e774f337 Merge system and filesystem branches, bringing them in sync with N2415. Several filesystem bugs fixed, and current_path setter added.
[SVN r39173]
2007-09-09 14:59:10 +00:00
Vladimir Prus
d795262a9e Remove V1 Jamfiles
[SVN r38516]
2007-08-08 19:02:26 +00:00
Beman Dawes
2cb2125ac9 ifdef around winerror.h include (Alexander Nasonov)
[SVN r36410]
2006-12-15 22:26:16 +00:00
Beman Dawes
1345dd12db v1 and v2 Jamfiles now all present and working
[SVN r35888]
2006-11-07 02:19:13 +00:00
Beman Dawes
f3c8c74656 Bring into compliance with N2066, TR2 Diagnostics Enhancements. Tests passing on Win32, Linux, on most modern compilers.
[SVN r35823]
2006-11-03 16:57:30 +00:00