Skip to content

Commit 752742a

Browse files
committed
Update included Catch to v2.13.10
1 parent c19fd7f commit 752742a

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

test/catch/catch.hpp

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Catch v2.13.8
3-
* Generated: 2022-01-03 21:20:09.589503
2+
* Catch v2.13.10
3+
* Generated: 2022-10-16 11:01:23.452308
44
* ----------------------------------------------------------
55
* This file has been merged from multiple headers. Please don't edit it directly
66
* Copyright (c) 2022 Two Blue Cubes Ltd. All rights reserved.
@@ -15,7 +15,7 @@
1515

1616
#define CATCH_VERSION_MAJOR 2
1717
#define CATCH_VERSION_MINOR 13
18-
#define CATCH_VERSION_PATCH 8
18+
#define CATCH_VERSION_PATCH 10
1919

2020
#ifdef __clang__
2121
# pragma clang system_header
@@ -7395,8 +7395,6 @@ namespace Catch {
73957395
template <typename T, bool Destruct>
73967396
struct ObjectStorage
73977397
{
7398-
using TStorage = typename std::aligned_storage<sizeof(T), std::alignment_of<T>::value>::type;
7399-
74007398
ObjectStorage() : data() {}
74017399

74027400
ObjectStorage(const ObjectStorage& other)
@@ -7439,7 +7437,7 @@ namespace Catch {
74397437
return *static_cast<T*>(static_cast<void*>(&data));
74407438
}
74417439

7442-
TStorage data;
7440+
struct { alignas(T) unsigned char data[sizeof(T)]; } data;
74437441
};
74447442
}
74457443

@@ -7949,7 +7947,7 @@ namespace Catch {
79497947
#if defined(__i386__) || defined(__x86_64__)
79507948
#define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
79517949
#elif defined(__aarch64__)
7952-
#define CATCH_TRAP() __asm__(".inst 0xd4200000")
7950+
#define CATCH_TRAP() __asm__(".inst 0xd43e0000")
79537951
#endif
79547952

79557953
#elif defined(CATCH_PLATFORM_IPHONE)
@@ -13392,6 +13390,10 @@ namespace Catch {
1339213390
filename.erase(0, lastSlash);
1339313391
filename[0] = '#';
1339413392
}
13393+
else
13394+
{
13395+
filename.insert(0, "#");
13396+
}
1339513397

1339613398
auto lastDot = filename.find_last_of('.');
1339713399
if (lastDot != std::string::npos) {
@@ -13554,7 +13556,7 @@ namespace Catch {
1355413556

1355513557
// Handle list request
1355613558
if( Option<std::size_t> listed = list( m_config ) )
13557-
return static_cast<int>( *listed );
13559+
return (std::min) (MaxExitCode, static_cast<int>(*listed));
1355813560

1355913561
TestGroup tests { m_config };
1356013562
auto const totals = tests.execute();
@@ -15387,7 +15389,7 @@ namespace Catch {
1538715389
}
1538815390

1538915391
Version const& libraryVersion() {
15390-
static Version version( 2, 13, 8, "", 0 );
15392+
static Version version( 2, 13, 10, "", 0 );
1539115393
return version;
1539215394
}
1539315395

@@ -17522,12 +17524,20 @@ namespace Catch {
1752217524

1752317525
#ifndef __OBJC__
1752417526

17527+
#ifndef CATCH_INTERNAL_CDECL
17528+
#ifdef _MSC_VER
17529+
#define CATCH_INTERNAL_CDECL __cdecl
17530+
#else
17531+
#define CATCH_INTERNAL_CDECL
17532+
#endif
17533+
#endif
17534+
1752517535
#if defined(CATCH_CONFIG_WCHAR) && defined(CATCH_PLATFORM_WINDOWS) && defined(_UNICODE) && !defined(DO_NOT_USE_WMAIN)
1752617536
// Standard C/C++ Win32 Unicode wmain entry point
17527-
extern "C" int wmain (int argc, wchar_t * argv[], wchar_t * []) {
17537+
extern "C" int CATCH_INTERNAL_CDECL wmain (int argc, wchar_t * argv[], wchar_t * []) {
1752817538
#else
1752917539
// Standard C/C++ main entry point
17530-
int main (int argc, char * argv[]) {
17540+
int CATCH_INTERNAL_CDECL main (int argc, char * argv[]) {
1753117541
#endif
1753217542

1753317543
return Catch::Session().run( argc, argv );
@@ -17890,7 +17900,7 @@ using Catch::Detail::Approx;
1789017900
#define INFO( msg ) (void)(0)
1789117901
#define UNSCOPED_INFO( msg ) (void)(0)
1789217902
#define WARN( msg ) (void)(0)
17893-
#define CAPTURE( msg ) (void)(0)
17903+
#define CAPTURE( ... ) (void)(0)
1789417904

1789517905
#define TEST_CASE( ... ) INTERNAL_CATCH_TESTCASE_NO_REGISTRATION(INTERNAL_CATCH_UNIQUE_NAME( C_A_T_C_H_T_E_S_T_ ))
1789617906
#define TEST_CASE_METHOD( className, ... ) INTERNAL_CATCH_TESTCASE_NO_REGISTRATION(INTERNAL_CATCH_UNIQUE_NAME( C_A_T_C_H_T_E_S_T_ ))

0 commit comments

Comments
 (0)