Accepting request 1111506 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/1111506
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=18
This commit is contained in:
Ana Guerrero 2023-09-17 17:28:52 +00:00 committed by Git OBS Bridge
commit c4ad243f03
3 changed files with 46 additions and 1 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Sep 15 05:28:44 UTC 2023 - Jiri Slaby <jslaby@suse.cz>
- tests-don-t-expect-multishot-recv-overflow-backloggi.patch (bsc#1215332)
-------------------------------------------------------------------
Thu Sep 14 08:37:29 UTC 2023 - Jiri Slaby <jslaby@suse.cz>
- build tests in parallel (using %{?_smp_mflags})
-------------------------------------------------------------------
Thu Aug 31 06:57:37 UTC 2023 - Jiri Slaby <jslaby@suse.cz>

View File

@ -26,6 +26,7 @@ Group: Development/Libraries/C and C++
URL: https://git.kernel.dk/cgit/liburing
Source: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.bz2
Patch0: test-io_uring_register-fix-errno-confusion-and-new-e.patch
Patch1: tests-don-t-expect-multishot-recv-overflow-backloggi.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: procps
@ -81,7 +82,7 @@ sh ./configure --prefix=%{_prefix} \
# io_uring syscalls not supported as of qemu 7.0.0 and would test the host
# kernel anyway not the target kernel..
%if !0%{?qemu_user_space_build}
/usr/bin/make runtests
/usr/bin/make %{?_smp_mflags} runtests
%endif
%install

View File

@ -0,0 +1,34 @@
From: Pavel Begunkov <asml.silence@gmail.com>
Date: Fri, 11 Aug 2023 13:58:30 +0100
Subject: tests: don't expect multishot recv overflow backlogging
Patch-mainline: 2.5
Git-commit: b73e940c9dd4ffa8ac121db046c0788376691b99
References: kernel 6.5
Multishots may and are likely to complete when there is no space in CQ,
don't rely on overflows.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d078c0f797322bd01d8c91743d652b734e83e9ba.1691758633.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
---
test/recv-multishot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/recv-multishot.c b/test/recv-multishot.c
index e4a07ce976cc..f66f13198dde 100644
--- a/test/recv-multishot.c
+++ b/test/recv-multishot.c
@@ -271,7 +271,7 @@ static int test(struct args *args)
*/
bool const early_last = args->early_error == ERROR_EARLY_OVERFLOW &&
!args->wait_each &&
- i == N_CQE_OVERFLOW &&
+ i >= N_CQE_OVERFLOW &&
!(cqe->flags & IORING_CQE_F_MORE);
bool const should_be_last =
--
2.42.0