Fixed tests idn-cmd-utf8 and idn-robots-utf8 Re-enabled tests

This commit is contained in:
Jakub Čajka 2014-11-03 12:12:45 +01:00 committed by Dan Horák
parent a9aa53e9f2
commit 2eda8fe22b
2 changed files with 35 additions and 3 deletions

View File

@ -0,0 +1,26 @@
From 8d7c4f611f8ec9e16b6345dc49e0d0b8704a8a30 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <jcajka@redhat.com>
Date: Mon, 3 Nov 2014 10:34:48 +0100
Subject: [PATCH] Fix idn-cmd-utf8 and idn-robots-utf8 tests on architectures
with unsigned char
---
src/iri.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/iri.c b/src/iri.c
index e38edc9..11f2bda 100644
--- a/src/iri.c
+++ b/src/iri.c
@@ -279,7 +279,7 @@ remote_to_utf8 (struct iri *iri, const char *str, const char **new)
{
const char *p = str;
for (p = str; *p; p++)
- if (*p < 0)
+ if (*p < 0 || *p > 127)
{
*new = strdup (str);
return true;
--
1.9.3

View File

@ -1,7 +1,7 @@
Summary: A utility for retrieving files using the HTTP or FTP protocols
Name: wget
Version: 1.16
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv3+
Group: Applications/Internet
Url: http://www.gnu.org/software/wget/
@ -10,6 +10,8 @@ Source: ftp://ftp.gnu.org/gnu/wget/wget-%{version}.tar.xz
Patch1: wget-rh-modified.patch
Patch2: wget-1.15-path.patch
Patch3: wget-1.16-dont-run-failing-test.patch
# sent to upstream mailing list
Patch4: 0001-Fix-idn-cmd-utf8-and-idn-robots-utf8-tests-on-archit.patch
Provides: webclient
Provides: bundled(gnulib)
@ -36,6 +38,7 @@ support for Proxy servers, and configurability.
# don't run the Test-proxied-https-auth.px test since it fails with OpenSSL
# upstream is working on fix and will be fixed most probably in 1.16.1
%patch3 -p1 -b .test
%patch4 -p1 -b .char
%build
if pkg-config openssl ; then
@ -53,8 +56,7 @@ rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
%find_lang %{name}
%check
# turn off test suite since IDN UTF-8 test are failing on arm
# make check
make check
%post
/sbin/install-info %{_infodir}/wget.info.gz %{_infodir}/dir || :
@ -76,6 +78,10 @@ rm -rf $RPM_BUILD_ROOT
%{_infodir}/*
%changelog
* Mon Nov 03 2014 Jakub Čajka <jcajka@redhat.com> - 1.16-2
- fix failing tests idn-cmd-utf8 and idn-robots-utf8
- re-enabled tests
* Fri Oct 31 2014 Tomas Hozza <thozza@redhat.com> - 1.16-1
- update to 1.16
- fixes CVE-2014-4877