From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list.codeweavrs.com (list.codeweavers.com [4.36.192.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DBEA3E49D0; Thu, 23 Jul 2026 20:13:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=4.36.192.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784837601; cv=none; b=RggCkS4f/PUjFmlikX8sC6uHWiF7+Zgtoo8ucEuQQIsa7OYsvQBhYmmO1PKfIk0mdBKTqC01Lp50QyUHYEPXd9tbJHMt2WKKum5wrMjech/V1iwaJZ5cLHgwGQwA6XEPnrdVF0OpAQIMLcN+f2eRa2j5dFZ/5osJ1ei5Bqlkm+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784837601; c=relaxed/simple; bh=BbUNTYM56/ulELyMb/+QTJintb3w3cqQTEBM2+tC2vg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=q2MLy9KaTA+FWLXA0KBRRy6DcCIVP+5Q/vyjX7abKNZSCt/YWLvXDhfZ5KIn7doi3ScfkPxW2eCWl5yJ/78Z6eIMK19jSS92hKE6l5lo1f9i0+6qNxdCcNwyxaF7D+s/ZrwpgVEvfJMatl6pQxtlkxmt3W8NC/XsKBvC8t37Yh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codeweavers.com; spf=pass smtp.mailfrom=codeweavers.com; dkim=pass (2048-bit key) header.d=list.codeweavers.com header.i=@list.codeweavers.com header.b=cQ9jmLMA; arc=none smtp.client-ip=4.36.192.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codeweavers.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codeweavers.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=list.codeweavers.com header.i=@list.codeweavers.com header.b="cQ9jmLMA" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=list.codeweavers.com; s=list; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lfHZg+u8ne+vOi+IymxWIYACUEM7LNtzyJvvMTkgCrU=; b=cQ9jmLMAiUbmDlNpRvh2/rqjQD a2ic/5egOdZJT6JzYEioLZXcBqvS7R3ibXrLXX7HoQGYiuKe6+M52jB4t7l93KUNtN5AMfzzLxFvL MnTM8b1GsMs/ZoNt8q9J6ZVIG7DCUfTzlx8UHRiK9B2Cpk3yK8WwtQv5DmdniUM005gjNR97gE40X 1z/NNVYlD+AXowq85Wr6E6tQqWdRPo6DjFBuS0/YoboCcPfqR31PtQQw02j8TOzWu4wTfisCi2+4U w92C4I8d+sShpNmPJH5bzeQH7Pt+Me0qh0KuvMhPLOko3MAYJrT7342YuvRse35oa2X9ExTWtgYAf BYDtNpKw==; Received: from cw137ip160.mn.codeweavers.com ([10.69.137.160] helo=camazotz.mn.codeweavers.com) by list.codeweavrs.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wmzn6-00AV4U-1b; Thu, 23 Jul 2026 15:13:12 -0500 From: Elizabeth Figura To: Arnd Bergmann , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, wine-devel@list.winehq.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, =?UTF-8?q?Iv=C3=A1n=20Ezequiel=20Rodriguez?= , Elizabeth Figura Subject: [PATCH v2 1/5] selftests: ntsync: fix wake_all CREATE_EVENT fd expectation Date: Thu, 23 Jul 2026 15:12:57 -0500 Message-ID: <20260723201301.11826-2-zfigura@codeweavers.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260723201301.11826-1-zfigura@codeweavers.com> References: <20260723201301.11826-1-zfigura@codeweavers.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Iván Ezequiel Rodriguez wake_all used EXPECT_EQ(0, objs[3]) after NTSYNC_IOC_CREATE_EVENT. The ioctl returns a non-negative file descriptor on success; check EXPECT_LE(0, objs[3]) like the other CREATE_* paths. The incorrect expectation was noted on list (Mar 2025) but is still present in mainline. Signed-off-by: Iván Ezequiel Rodriguez Reviewed-by: Elizabeth Figura Signed-off-by: Elizabeth Figura --- tools/testing/selftests/drivers/ntsync/ntsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/drivers/ntsync/ntsync.c b/tools/testing/selftests/drivers/ntsync/ntsync.c index e6a37214aa46..12b4b81edf7f 100644 --- a/tools/testing/selftests/drivers/ntsync/ntsync.c +++ b/tools/testing/selftests/drivers/ntsync/ntsync.c @@ -968,7 +968,7 @@ TEST(wake_all) auto_event_args.manual = false; auto_event_args.signaled = true; objs[3] = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &auto_event_args); - EXPECT_EQ(0, objs[3]); + EXPECT_LE(0, objs[3]); wait_args.timeout = get_abs_timeout(1000); wait_args.objs = (uintptr_t)objs; -- 2.53.0