From 1301b0b0817a3852e544982fad29082c2cb9e22f Mon Sep 17 00:00:00 2001 From: linker99 Date: Tue, 31 Oct 2023 09:02:54 +0800 Subject: [PATCH] Fixed typo in ck_assert_str_eq doc --- ...0-Fixed-typo-in-ck_assert_str_eq-doc.patch | 25 +++++++++++++++++++ check.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 check-0.12.0-Fixed-typo-in-ck_assert_str_eq-doc.patch diff --git a/check-0.12.0-Fixed-typo-in-ck_assert_str_eq-doc.patch b/check-0.12.0-Fixed-typo-in-ck_assert_str_eq-doc.patch new file mode 100644 index 0000000..dbd61f5 --- /dev/null +++ b/check-0.12.0-Fixed-typo-in-ck_assert_str_eq-doc.patch @@ -0,0 +1,25 @@ +From dd6fa23814a1e552652a407dff210e6606944b4f Mon Sep 17 00:00:00 2001 +From: foviedoITBA +Date: Thu, 16 Nov 2017 16:55:30 -0300 +Subject: [PATCH] Fixed typo in ck_assert_str_eq doc + +--- + src/check.h.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/check.h.in b/src/check.h.in +index 7966126..9e03d20 100644 +--- a/src/check.h.in ++++ b/src/check.h.in +@@ -1430,7 +1430,7 @@ do { \ + * Check two strings to determine if 0==strcmp(X,Y) + * + * If X or Y is NULL the test failes. +- * If (0==strcmp(X,Y)), the test fails. ++ * If not 0==strcmp(X,Y), the test fails. + * + * @param X string + * @param Y string to compare against X +-- +2.27.0 + diff --git a/check.spec b/check.spec index 505108d..8a7e989 100644 --- a/check.spec +++ b/check.spec @@ -1,6 +1,6 @@ Name: check Version: 0.12.0 -Release: 5 +Release: 6 Summary: A unit testing framework for C Source0: https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz License: LGPLv2+ @@ -8,6 +8,7 @@ URL: http://libcheck.github.io/check/ Patch0: %{name}-0.11.0-info-in-builddir.patch Patch1: %{name}-0.11.0-fp.patch Patch2: %{name}-0.12.0-Add-warning-on-floating-point-eq-and-ne-assertions.patch +Patch3: %{name}-0.12.0-Fixed-typo-in-ck_assert_str_eq-doc.patch BuildRequires: gcc libtool patchutils pkgconfig BuildRequires: subunit-devel texinfo @@ -94,6 +95,9 @@ make check %{_mandir}/man1/checkmk.1* %changelog +* Tue Nov 14 2023 fandehui - 0.12.0-6 +- Fixed typo in ck_assert_str_eq doc + * Thu Nov 9 2023 fandehui - 0.12.0-5 - Add warning on floating point eq and ne assertions