forked from pool/doctest
Accepting request 976365 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/976365 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/doctest?expand=0&rev=8
This commit is contained in:
commit
90b9c1f9ab
@ -1,40 +0,0 @@
|
||||
From e0ff2bd492fd0dc4d25e6a507aa7d6766ce2da83 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jan.kundrat@cesnet.cz>
|
||||
Date: Mon, 17 May 2021 12:41:37 +0200
|
||||
Subject: [PATCH] Fix build with GCC 11
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
GCC 11 started warning about unused-but-set variables. Here's how it
|
||||
fails:
|
||||
|
||||
examples/all_features/stringification.cpp: In function ‘void _DOCTEST_ANON_FUNC_20()’:
|
||||
examples/all_features/stringification.cpp:106:26: error: variable ‘bla2’ set but not used [-Werror=unused-but-set-variable]
|
||||
106 | MyTypeInherited<int> bla2;
|
||||
| ^~~~
|
||||
|
||||
I don't think that that assignment is actually doing anything; in fact,
|
||||
there's that other variable which is assigned in a similar manner, but
|
||||
that one is also used for an assert.
|
||||
---
|
||||
examples/all_features/stringification.cpp | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/examples/all_features/stringification.cpp b/examples/all_features/stringification.cpp
|
||||
index a8b5d5b..492e1ec 100644
|
||||
--- a/examples/all_features/stringification.cpp
|
||||
+++ b/examples/all_features/stringification.cpp
|
||||
@@ -103,9 +103,6 @@ TEST_CASE("all asserts should fail and show how the objects get stringified") {
|
||||
MyTypeInherited<int> bla1;
|
||||
bla1.one = 5;
|
||||
bla1.two = 4u;
|
||||
- MyTypeInherited<int> bla2;
|
||||
- bla2.one = 5;
|
||||
- bla2.two = 6u;
|
||||
|
||||
Bar::Foo f1;
|
||||
Bar::Foo f2;
|
||||
--
|
||||
2.31.1
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:39110778e6baf373ef04342d7cb3fe35da104cb40769103e8a2f0035f5a5f1cb
|
||||
size 2277281
|
3
doctest-2.4.8.tar.gz
Normal file
3
doctest-2.4.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f52763630aa17bd9772b54e14b6cdd632c87adf0169455a86a49bd94abf2cd83
|
||||
size 2275833
|
@ -1,3 +1,58 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 11 10:59:23 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>
|
||||
|
||||
- Update to 2.4.8
|
||||
* Fixed g_oss is causing incorrect stringification results
|
||||
* Feature: Assertions returning booleans
|
||||
* Non visible build related changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 4 22:25:32 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.4.7:
|
||||
* Fix Stack-buffer-overflow probably because char array is viewed as NULL
|
||||
terminated string
|
||||
* "C4834: discarding return value" with REQUIRE_THROWS
|
||||
* Xcode 11.3 is gone from macOS-latest (=macOS-11)
|
||||
* is it possible to define dependency for CHECKs
|
||||
* Output summary explanation
|
||||
* compiler errors in doctest.h using cmake in CLion
|
||||
* Fails to build in VS2013 because of constexpr
|
||||
* -Wreserved-identifier warnings with Clang 13.0.0
|
||||
* Build fails with latest MSVC 2019 (v16.11) due to /WX
|
||||
* VS 16.11 warning about unreferenced function with internal linkage
|
||||
* Faq googletest mocking dead link
|
||||
* FR: Documentation: FAQ: Add sectoin 'multiple files'
|
||||
* CMAKE: doctest_discover_tests() error when ADD_LABELS is not specified
|
||||
* Register tests based on test data available
|
||||
* naming override in different testcase files
|
||||
* Segmentation fault during the compilation without the copy elision optimization
|
||||
* Compiler warnings on Xcode 12.5
|
||||
* Using filter -sc does not work properly?
|
||||
* [question] Example of tests in production code & DLLs & shared libraries?
|
||||
* Dumping fixture state to disk on error
|
||||
* Macros construct reserved identifiers
|
||||
* Running doctest on embedded ARM Cortex µCs
|
||||
* Asserts Outside of Tests Example Does Not Link
|
||||
* [FEATURE REQUEST] Quiet flag
|
||||
* Compile error on Intel C++ Classic Compilers
|
||||
* compiling doctest in 32-bit with __stdcall calling convention fails
|
||||
* Duplicate 'const' compilation error from TEST_CASE_CLASS macro
|
||||
* Packed fields can't be accessed in 2.4.6
|
||||
* Dangling pointers with .str().c_str()
|
||||
* Automatic adding of TEST_SUITE labels to discovered tests fails if
|
||||
ADD_LABELS not set
|
||||
* Adding a bunch of REQUIRE/CHECK utilities
|
||||
* Warning C4114 in MSVC
|
||||
* Own repository
|
||||
* Linking problem with Clang 10 on Windows
|
||||
* Add option not to print the intro text
|
||||
* [Feature] Better integration with tools (VS Code Test Adapter Extension)
|
||||
* vscode test explorer
|
||||
* Want an option not to print any intro
|
||||
* Add way to disable printing of intro
|
||||
- Drop 0001-Fix-build-with-GCC-11.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 1 09:19:24 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
|
10
doctest.spec
10
doctest.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package doctest
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,14 +17,12 @@
|
||||
|
||||
|
||||
Name: doctest
|
||||
Version: 2.4.6
|
||||
Version: 2.4.8
|
||||
Release: 0
|
||||
Summary: Single-header testing framework
|
||||
License: MIT
|
||||
URL: http://bit.ly/doctest-docs
|
||||
Source0: https://github.com/onqtam/doctest/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch0: 0001-Fix-build-with-GCC-11.patch
|
||||
URL: https://github.com/doctest/doctest
|
||||
Source0: https://github.com/doctest/doctest/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
|
Loading…
Reference in New Issue
Block a user