forked from boostorg/regex
Add some more windows checks, remove outdated CI tests
(Xenial is no longer supported).
This commit is contained in:
@ -224,3 +224,8 @@ compile test_warnings.cpp
|
||||
<define>BOOST_REGEX_STANDALONE
|
||||
[ check-target-builds ../build//is_legacy_03 : : <build>no ]
|
||||
: test_warnings_standalone ;
|
||||
|
||||
compile test_windows_defs_1.cpp ;
|
||||
compile test_windows_defs_2.cpp ;
|
||||
compile test_windows_defs_3.cpp ;
|
||||
compile test_windows_defs_4.cpp ;
|
||||
|
29
test/test_windows_defs_1.cpp
Normal file
29
test/test_windows_defs_1.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2021
|
||||
* John Maddock
|
||||
*
|
||||
* Use, modification and distribution are subject to the
|
||||
* Boost Software License, Version 1.0. (See accompanying file
|
||||
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32)
|
||||
//
|
||||
// Make sure our forward declarations match those in windows.h:
|
||||
//
|
||||
|
||||
#define STRICT
|
||||
|
||||
#include <boost/regex.hpp>
|
||||
#include <windows.h>
|
||||
|
||||
void test_proc()
|
||||
{
|
||||
std::string text, re;
|
||||
boost::regex exp(re);
|
||||
regex_match(text, exp);
|
||||
}
|
||||
|
||||
#endif
|
29
test/test_windows_defs_2.cpp
Normal file
29
test/test_windows_defs_2.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2021
|
||||
* John Maddock
|
||||
*
|
||||
* Use, modification and distribution are subject to the
|
||||
* Boost Software License, Version 1.0. (See accompanying file
|
||||
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32)
|
||||
//
|
||||
// Make sure our forward declarations match those in windows.h:
|
||||
//
|
||||
|
||||
#define NO_STRICT
|
||||
|
||||
#include <boost/regex.hpp>
|
||||
#include <windows.h>
|
||||
|
||||
void test_proc()
|
||||
{
|
||||
std::string text, re;
|
||||
boost::regex exp(re);
|
||||
regex_match(text, exp);
|
||||
}
|
||||
|
||||
#endif
|
27
test/test_windows_defs_3.cpp
Normal file
27
test/test_windows_defs_3.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2021
|
||||
* John Maddock
|
||||
*
|
||||
* Use, modification and distribution are subject to the
|
||||
* Boost Software License, Version 1.0. (See accompanying file
|
||||
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32)
|
||||
//
|
||||
// Make sure our forward declarations match those in windows.h:
|
||||
//
|
||||
|
||||
#include <windows.h>
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
void test_proc()
|
||||
{
|
||||
std::string text, re;
|
||||
boost::regex exp(re);
|
||||
regex_match(text, exp);
|
||||
}
|
||||
|
||||
#endif
|
28
test/test_windows_defs_4.cpp
Normal file
28
test/test_windows_defs_4.cpp
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2021
|
||||
* John Maddock
|
||||
*
|
||||
* Use, modification and distribution are subject to the
|
||||
* Boost Software License, Version 1.0. (See accompanying file
|
||||
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32)
|
||||
//
|
||||
// Make sure our forward declarations match those in windows.h:
|
||||
//
|
||||
#define STRICT
|
||||
#define BOOST_NO_ANSI_APIS
|
||||
#include <boost/regex.hpp>
|
||||
#include <windows.h>
|
||||
|
||||
void test_proc()
|
||||
{
|
||||
std::string text, re;
|
||||
boost::regex exp(re);
|
||||
regex_match(text, exp);
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user