prevent test46 from failing due to expired cookie

This commit is contained in:
Kamil Dudka 2015-08-27 16:10:28 +02:00
parent d6de9efc29
commit 45d6457526
2 changed files with 50 additions and 1 deletions

View File

@ -0,0 +1,42 @@
From c90b930b8312bb31f62325a09125cf44dd58d506 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 10 Aug 2015 00:12:12 +0200
Subject: [PATCH] test46: update cookie expire time
... since it went old and thus was expired and caused the test to fail!
Upstream-commit: 002d58f1e8d8e725ba6d676599838983561feff9
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
---
tests/data/test46 | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/data/test46 b/tests/data/test46
index b6f8f83..b6ebe80 100644
--- a/tests/data/test46
+++ b/tests/data/test46
@@ -51,8 +51,8 @@ TZ=GMT
www.fake.come FALSE / FALSE 1022144953 cookiecliente si
www.loser.com FALSE / FALSE 1139150993 UID 99
-%HOSTIP FALSE / FALSE 1439150993 mooo indeed
-#HttpOnly_%HOSTIP FALSE /want FALSE 1439150993 mooo2 indeed2
+%HOSTIP FALSE / FALSE 1739150993 mooo indeed
+#HttpOnly_%HOSTIP FALSE /want FALSE 1739150993 mooo2 indeed2
%HOSTIP FALSE /want FALSE 0 empty
</file>
</client>
@@ -76,8 +76,8 @@ Cookie: empty=; mooo2=indeed2; mooo=indeed
www.fake.come FALSE / FALSE 1022144953 cookiecliente si
www.loser.com FALSE / FALSE 1139150993 UID 99
-%HOSTIP FALSE / FALSE 1439150993 mooo indeed
-#HttpOnly_%HOSTIP FALSE /want FALSE 1439150993 mooo2 indeed2
+%HOSTIP FALSE / FALSE 1739150993 mooo indeed
+#HttpOnly_%HOSTIP FALSE /want FALSE 1739150993 mooo2 indeed2
%HOSTIP FALSE /want FALSE 0 empty
%HOSTIP FALSE / FALSE 2054030187 ckyPersistent permanent
%HOSTIP FALSE / FALSE 0 ckySession temporary
--
2.4.6

View File

@ -1,7 +1,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 7.43.0
Release: 2%{?dist}
Release: 3%{?dist}
License: MIT
Group: Applications/Internet
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
@ -10,6 +10,9 @@ Source2: curlbuild.h
# prevent dnf from crashing when using both FTP and HTTP (#1248389)
Patch1: 0001-curl-7.43.0-f7dcc7c1.patch
# prevent test46 from failing due to expired cookie
Patch2: 0002-curl-7.43.0-002d58f1.patch
# patch making libcurl multilib ready
Patch101: 0101-curl-7.32.0-multilib.patch
@ -121,6 +124,7 @@ documentation of the library, too.
# upstream patches
%patch1 -p1
%patch2 -p1
# Fedora patches
%patch101 -p1
@ -240,6 +244,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/aclocal/libcurl.m4
%changelog
* Thu Aug 27 2015 Kamil Dudka <kdudka@redhat.com> 7.43.0-3
- prevent test46 from failing due to expired cookie
* Thu Jul 30 2015 Kamil Dudka <kdudka@redhat.com> 7.43.0-2
- prevent dnf from crashing when using both FTP and HTTP (#1248389)
- build support for the HTTP/2 protocol