Remove error-prone, redundant test

(cherry picked from commit 43ca2c7183abdcc6d7c3e608f36e64c222e6a274)
This commit is contained in:
lyn1001 2022-05-13 11:47:25 +08:00 committed by openeuler-sync-bot
parent 5a4d6437ff
commit dc2e1e141a
2 changed files with 18 additions and 1 deletions

View 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");

View File

@ -1,6 +1,6 @@
Name: libgit2
Version: 0.27.8
Release: 4
Release: 5
Summary: portable, pure C implementation of the Git core methods
License: GPLv2 with exceptions
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
Patch0002: CVE-2020-12278.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: libssh2-devel openssl-devel python3 zlib-devel
@ -57,6 +58,9 @@ sed -i '/ADD_TEST(online/s/^/#/' tests/CMakeLists.txt
%{_includedir}/git2*
%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
- fix CVE-2020-12278 and CVE-2020-12279