From nobody Sat Feb 7 17:56:27 2026 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3274C23EAB4 for ; Thu, 16 Oct 2025 16:20:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631636; cv=none; b=Bo861O1uzYV2GLPBRJuwXXXBmty6MZ9VsX5oeZemqP7XWnlXD0ftXQUaJH2o/VT0KOYPLxM875kMtopIz4E3wB9irIE4wUuF121kCfpFKyFvoZ6mKIFy2CnJAPW5lk6JHsvwGD1ZaumqRzNlmFGE/qwvA7fqU2pjMBu1NHpp/gM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631636; c=relaxed/simple; bh=odHyk61nJmeo6+J+Zx1z4MHCgB/EH+RBahpkCczJc1I=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=HCqwdQJrbxH16u+UQkXMzeYoTVjZ+KCIgCN7ZhlLDhYWfpTLhw7YfW6roV1tXptHuQ6WHAELHXlbtMWVnwzrA2vKNRzHo8r+9+9b2v/9/jrOtEfn3M9RBZ3pD0cpBiqBS5TwY8ISqHNqmDZjweB0bXVuwq/i1Jd/gUYvFrS45vc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--cmllamas.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=yu52fW7J; arc=none smtp.client-ip=209.85.214.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--cmllamas.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="yu52fW7J" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-290ab8f5af6so7370935ad.3 for ; Thu, 16 Oct 2025 09:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1760631634; x=1761236434; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=opgpSi9HCyYeb5QaoJFK0+KAYLm9MmQJSNhZlyWP97E=; b=yu52fW7J9oXJmywPsNE8LoS0ZrHec3QpeZ7SuN9hXu6C5+DoUjilfz9A4LlTojFawU x1JEyS4CYdP7KvKcJHcZu3CKFLR83dYjKRZBsugie06KgRMVT0vSBx0Ra5Q5C4amXRxx 50+yYfeZ6jQPHK/bZI+EbCQpQSSBPyQfOK0tW03BYlZ8eLILYPI0D1awiOKdRIBZE0Ub VrLzX4rMYRNCRAvYXZ1ieqsTHewpDOHy6G2bYElQziJreKN3es8GqBe/1Y6IzjPcotb8 Sdf6uEpdXhIW2ey0EACqIY+3PgT92qmdYIZfmam5tgpPvUIkMdZgwocvmM/oQLiz2Wo4 Yb7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760631634; x=1761236434; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=opgpSi9HCyYeb5QaoJFK0+KAYLm9MmQJSNhZlyWP97E=; b=pVI0aYIJy0DAL82gIru1BizEpzo6S+kUeKsh0WjVYfQHhQVvHQU/NJnCgoCTpPW/Ti rZHkVBfp3VNLPuoy9d6I0KyN7vsf+w0cbxnwQLr/I2IPJPgmvl9/GQqO9U3vO4q9IGUr VNf5jDEDTgGOPGO06SStiX5uuc2A9gHKpKAuIQWQyCA03WleoNigEMtJY5E8YQHg3DxC Eu4MpFeUMGXWyQqG2zbGPJob3jrWx5cdjxDNBn5mWY2NYD1Feq04CG1FwRd6nXExcNzg o1Atzu4YDSt19utzuyev28EQau+CXwyt97R2Ry1LjQMhc12QXuqH40FKpJNC8pjtRJao YIUg== X-Forwarded-Encrypted: i=1; AJvYcCVn4YzRsr2Mw2RJSyDeWJqr26l1agdLopY8eRe402udy4uQiaeyJmzvkJr8mHr9CRaxIMCbx6hSVh8vnRk=@vger.kernel.org X-Gm-Message-State: AOJu0YwhHPUfhhgZ4DYK7LhyQlQf/ZOEqa2TEFBRnbAXos3Hi+Z/UZqD 7ANfeXyeQfihyNl/se7OGLQKNJCAGEguLPdqXVyu873B3yx9LvoJXDUkxYMpekAPz3VNK+aXkn9 y1Gp9u86M39wNgQ== X-Google-Smtp-Source: AGHT+IEAchZCEYXbzttQRhqLO9QAGbSjjSUxUK9QNMdzsGd5ULRJQFOzo2z7Urwl/wXb5vQxCHwQk2cCqD9wJg== X-Received: from plbms6.prod.google.com ([2002:a17:903:ac6:b0:290:258e:f666]) (user=cmllamas job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:2408:b0:27e:ea82:5ce8 with SMTP id d9443c01a7336-290c9ca6afbmr7175385ad.14.1760631634376; Thu, 16 Oct 2025 09:20:34 -0700 (PDT) Date: Thu, 16 Oct 2025 16:19:41 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.51.0.869.ge66316f041-goog Message-ID: <20251016162009.3270784-1-cmllamas@google.com> Subject: [PATCH] selftests/futex: skip tests if shmget unsupported From: Carlos Llamas To: Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , "=?UTF-8?q?Andr=C3=A9=20Almeida?=" , Shuah Khan , Carlos Llamas Cc: kernel-team@android.com, linux-kernel@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On systems where the shmget() syscall is not supported, tests like anon_page and shared_waitv will fail. Skip these tests in such cases to allow the rest of the test suite to run. Signed-off-by: Carlos Llamas --- tools/testing/selftests/futex/functional/futex_wait.c | 2 ++ tools/testing/selftests/futex/functional/futex_waitv.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/testing/selftests/futex/functional/futex_wait.c b/tools/= testing/selftests/futex/functional/futex_wait.c index 152ca4612886..1269642bb662 100644 --- a/tools/testing/selftests/futex/functional/futex_wait.c +++ b/tools/testing/selftests/futex/functional/futex_wait.c @@ -71,6 +71,8 @@ TEST(anon_page) /* Testing an anon page shared memory */ shm_id =3D shmget(IPC_PRIVATE, 4096, IPC_CREAT | 0666); if (shm_id < 0) { + if (errno =3D=3D ENOSYS) + ksft_exit_skip("shmget syscall not supported\n"); perror("shmget"); exit(1); } diff --git a/tools/testing/selftests/futex/functional/futex_waitv.c b/tools= /testing/selftests/futex/functional/futex_waitv.c index c684b10eb76e..3bc4e5dc70e7 100644 --- a/tools/testing/selftests/futex/functional/futex_waitv.c +++ b/tools/testing/selftests/futex/functional/futex_waitv.c @@ -86,6 +86,8 @@ TEST(shared_waitv) int shm_id =3D shmget(IPC_PRIVATE, 4096, IPC_CREAT | 0666); =20 if (shm_id < 0) { + if (errno =3D=3D ENOSYS) + ksft_exit_skip("shmget syscall not supported\n"); perror("shmget"); exit(1); } --=20 2.51.0.869.ge66316f041-goog