tests: Added C++0x support
git-svn-id: http://pugixml.googlecode.com/svn/trunk@505 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
45a0392656
commit
47c17a25d9
@ -22,6 +22,11 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) )
|
||||
|
||||
RESULT += -W -Wall -Wextra -Werror -pedantic ;
|
||||
|
||||
if ( $(toolset:I=_0x) )
|
||||
{
|
||||
RESULT += -std=c++0x ;
|
||||
}
|
||||
|
||||
if ( $(fulldebug) )
|
||||
{
|
||||
RESULT += -g ;
|
||||
|
||||
@ -24,7 +24,7 @@ sub gcctoolset
|
||||
}
|
||||
|
||||
$fast = (shift eq 'fast');
|
||||
@toolsets = ($^O =~ /MSWin/) ? (bcc, cw, dmc, ic8, ic9, ic9_x64, ic10, ic10_x64, ic11, ic11_x64, mingw34, mingw44, mingw45, mingw46_x64, msvc6, msvc7, msvc71, msvc8, msvc8_x64, msvc9, msvc9_x64, msvc10, msvc10_x64) : ($^O =~ /solaris/) ? (suncc) : (&gcctoolset());
|
||||
@toolsets = ($^O =~ /MSWin/) ? (bcc, cw, dmc, ic8, ic9, ic9_x64, ic10, ic10_x64, ic11, ic11_x64, mingw34, mingw44, mingw45, mingw45_0x, mingw46_x64, msvc6, msvc7, msvc71, msvc8, msvc8_x64, msvc9, msvc9_x64, msvc10, msvc10_x64) : ($^O =~ /solaris/) ? (suncc) : (&gcctoolset());
|
||||
@configurations = (debug, release);
|
||||
@defines = (PUGIXML_NO_XPATH, PUGIXML_NO_EXCEPTIONS, PUGIXML_NO_STL, PUGIXML_WCHAR_MODE);
|
||||
$stddefine = 'PUGIXML_STANDARD';
|
||||
|
||||
@ -13,6 +13,7 @@ sub prettytoolset
|
||||
return "Intel C++ Compiler $1.0" if ($toolset =~ /^ic(\d+)$/);
|
||||
return "Intel C++ Compiler $1.0 x64" if ($toolset =~ /^ic(\d+)_x64$/);
|
||||
return "MinGW (GCC $1.$2)" if ($toolset =~ /^mingw(\d)(\d)$/);
|
||||
return "MinGW (GCC $1.$2) C++0x" if ($toolset =~ /^mingw(\d)(\d)_0x$/);
|
||||
return "MinGW (GCC $1.$2) x64" if ($toolset =~ /^mingw(\d)(\d)_x64$/);
|
||||
return "Microsoft Visual C++ 7.1" if ($toolset eq 'msvc71');
|
||||
return "Microsoft Visual C++ $1.0" if ($toolset =~ /^msvc(\d+)$/);
|
||||
|
||||
@ -15,6 +15,10 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#ifdef __MINGW32__
|
||||
# include <io.h> // for unlink in C++0x mode
|
||||
#endif
|
||||
|
||||
TEST(document_create_empty)
|
||||
{
|
||||
pugi::xml_document doc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user