fix brotli-decompressor-test testcase failure
Signed-off-by: kerongw <wangkerong@h-partners.com> (cherry picked from commit 30074593e9e83fec7e4baa528c100955120c7fa2)
This commit is contained in:
parent
b88548e5b2
commit
95acdf2d9a
27
backport-fix-testcase-error.patch
Normal file
27
backport-fix-testcase-error.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From a2899a3f7a508f6e2f031c988759229a79a1b7be Mon Sep 17 00:00:00 2001
|
||||||
|
From: Patrick Griffis <pgriffis@igalia.com>
|
||||||
|
Date: Wed, 24 Nov 2021 12:14:53 -0600
|
||||||
|
Subject: [PATCH] tests: Fix brotli test comparing non-NUL-terminated data as a
|
||||||
|
string
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/brotli-decompressor-test.c | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/tests/brotli-decompressor-test.c b/tests/brotli-decompressor-test.c
|
||||||
|
index cb26e46a..cd9004c3 100644
|
||||||
|
--- a/tests/brotli-decompressor-test.c
|
||||||
|
+++ b/tests/brotli-decompressor-test.c
|
||||||
|
@@ -54,6 +54,9 @@ test_brotli (void)
|
||||||
|
|
||||||
|
g_assert_cmpint (result, ==, G_CONVERTER_FINISHED);
|
||||||
|
|
||||||
|
+ /* NUL terminate data so we can cmpstr below. */
|
||||||
|
+ g_byte_array_append (out_bytes, (const guint8*)"\0", 1);
|
||||||
|
+
|
||||||
|
g_free (contents);
|
||||||
|
g_assert_true (g_file_get_contents (uncompressed_filename, &contents, &length, NULL));
|
||||||
|
g_assert_cmpstr ((char*)out_bytes->data, ==, contents);
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
||||||
@ -1,10 +1,13 @@
|
|||||||
Name: libsoup
|
Name: libsoup
|
||||||
Version: 2.71.0
|
Version: 2.71.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: An HTTP library implementation
|
Summary: An HTTP library implementation
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
URL: https://wiki.gnome.org/Projects/libsoup
|
URL: https://wiki.gnome.org/Projects/libsoup
|
||||||
Source0: https://download.gnome.org/sources/%{name}/2.71/%{name}-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/%{name}/2.71/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
Patch6000: backport-fix-testcase-error.patch
|
||||||
|
|
||||||
BuildRequires: glib2-devel glib-networking krb5-devel gobject-introspection-devel gettext
|
BuildRequires: glib2-devel glib-networking krb5-devel gobject-introspection-devel gettext
|
||||||
BuildRequires: libxml2-devel libpsl-devel sqlite-devel vala gtk-doc meson libxslt
|
BuildRequires: libxml2-devel libpsl-devel sqlite-devel vala gtk-doc meson libxslt
|
||||||
BuildRequires: samba-winbind-clients brotli-devel
|
BuildRequires: samba-winbind-clients brotli-devel
|
||||||
@ -61,6 +64,9 @@ sed -i 's/idm[0-9]\{5,32\}/idm12345678912345/g' %{buildroot}%{_datadir}/gtk-doc/
|
|||||||
%{_datadir}/gtk-doc/html/libsoup-2.4/*
|
%{_datadir}/gtk-doc/html/libsoup-2.4/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 01 2022 wangkerong<wangkeorng@h-partners.com> - 2.71.0-3
|
||||||
|
- fix brotli-decompressor-test testcase failure
|
||||||
|
|
||||||
* Mon Apr 19 2021 zhanzhimin<zhanzhimin@huawei.com> - 2.71.0-2
|
* Mon Apr 19 2021 zhanzhimin<zhanzhimin@huawei.com> - 2.71.0-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user