Remove error-prone, redundant test
(cherry picked from commit 43ca2c7183abdcc6d7c3e608f36e64c222e6a274)
This commit is contained in:
parent
5a4d6437ff
commit
dc2e1e141a
13
Remove-error-prone-redundant-test.patch
Normal file
13
Remove-error-prone-redundant-test.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/tests/refs/revparse.c b/tests/refs/revparse.c
|
||||||
|
index 459188c..2bb19ff 100644
|
||||||
|
--- a/tests/refs/revparse.c
|
||||||
|
+++ b/tests/refs/revparse.c
|
||||||
|
@@ -400,8 +400,6 @@ void test_refs_revparse__date(void)
|
||||||
|
* a65fedf HEAD@{1335806603 -0900}: commit:
|
||||||
|
* be3563a HEAD@{1335806563 -0700}: clone: from /Users/ben/src/libgit2/tests/resour
|
||||||
|
*/
|
||||||
|
- test_object("HEAD@{10 years ago}", NULL);
|
||||||
|
-
|
||||||
|
test_object("HEAD@{1 second}", "a65fedf39aefe402d3bb6e24df4d4f5fe4547750");
|
||||||
|
test_object("HEAD@{1 second ago}", "a65fedf39aefe402d3bb6e24df4d4f5fe4547750");
|
||||||
|
test_object("HEAD@{2 days ago}", "a65fedf39aefe402d3bb6e24df4d4f5fe4547750");
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: libgit2
|
Name: libgit2
|
||||||
Version: 0.27.8
|
Version: 0.27.8
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: portable, pure C implementation of the Git core methods
|
Summary: portable, pure C implementation of the Git core methods
|
||||||
License: GPLv2 with exceptions
|
License: GPLv2 with exceptions
|
||||||
URL: https://libgit2.org
|
URL: https://libgit2.org
|
||||||
@ -9,6 +9,7 @@ Source0: https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz
|
|||||||
Patch0001: 0001-tests-don-t-run-buf-oom-on-32-bit-systems.patch
|
Patch0001: 0001-tests-don-t-run-buf-oom-on-32-bit-systems.patch
|
||||||
Patch0002: CVE-2020-12278.patch
|
Patch0002: CVE-2020-12278.patch
|
||||||
Patch0003: CVE-2020-12279.patch
|
Patch0003: CVE-2020-12279.patch
|
||||||
|
Patch0004: Remove-error-prone-redundant-test.patch
|
||||||
|
|
||||||
BuildRequires: gcc cmake >= 2.8.11 ninja-build http-parser-devel libcurl-devel
|
BuildRequires: gcc cmake >= 2.8.11 ninja-build http-parser-devel libcurl-devel
|
||||||
BuildRequires: libssh2-devel openssl-devel python3 zlib-devel
|
BuildRequires: libssh2-devel openssl-devel python3 zlib-devel
|
||||||
@ -57,6 +58,9 @@ sed -i '/ADD_TEST(online/s/^/#/' tests/CMakeLists.txt
|
|||||||
%{_includedir}/git2*
|
%{_includedir}/git2*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 13 2022 liyanan <liyanan32@h-partners.com> - 0.27.8-5
|
||||||
|
- Remove error-prone, redundant test
|
||||||
|
|
||||||
* Fri Jul 23 2021 guoxiaoqi<guoxiaoqi2@huawei.com> - 0.27.8-4
|
* Fri Jul 23 2021 guoxiaoqi<guoxiaoqi2@huawei.com> - 0.27.8-4
|
||||||
- fix CVE-2020-12278 and CVE-2020-12279
|
- fix CVE-2020-12278 and CVE-2020-12279
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user