|
|
Log in / Subscribe / Register

selftests/futex: Migrate functional tests to harness and fix validations

From:  Wake Liu <wakel-AT-google.com>
To:  Thomas Gleixner <tglx-AT-kernel.org>, Ingo Molnar <mingo-AT-redhat.com>, Shuah Khan <shuah-AT-kernel.org>, linux-kselftest-AT-vger.kernel.org
Subject:  [PATCH 0/2] selftests/futex: Migrate functional tests to harness and fix validations
Date:  Mon, 25 May 2026 07:57:46 +0000
Message-ID:  <20260525075748.3720995-1-wakel@google.com>
Cc:  Peter Zijlstra <peterz-AT-infradead.org>, Darren Hart <dvhart-AT-infradead.org>, Davidlohr Bueso <dave-AT-stgolabs.net>, "AndrĂ© Almeida" <andrealmeid-AT-igalia.com>, Carlos Llamas <cmllamas-AT-google.com>, Edward Liaw <edliaw-AT-google.com>, linux-kernel-AT-vger.kernel.org, wakel-AT-google.com
Archive-link:  Article

This series refactors futex functional tests to use the kselftest_harness.h
framework, fixing inconsistencies on older kernels where some syscalls
are missing, and corrects the validation logic in waitv negative tests.

Patch 1 migrates wait_timeout, waitv, and wait_wouldblock to the harness.
Patch 2 corrects the validation logic in waitv negative tests.

Wake Liu (2):
  selftests/futex: Migrate functional tests to harness
  selftests/futex: Correct validation logic in waitv

 .../futex/functional/futex_wait_timeout.c     | 101 ++++++-------
 .../futex/functional/futex_wait_wouldblock.c  |  40 ++---
 .../selftests/futex/functional/futex_waitv.c  | 142 +++++++++---------
 3 files changed, 133 insertions(+), 150 deletions(-)

-- 
2.54.0.746.g67dd491aae-goog




Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds