From patchwork Fri Nov 29 16:28:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rohr, Stephan" X-Patchwork-Id: 102137 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 220C63858C98 for ; Fri, 29 Nov 2024 16:29:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 220C63858C98 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=bb49xoUW X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by sourceware.org (Postfix) with ESMTPS id 833FD3858D37 for ; Fri, 29 Nov 2024 16:28:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 833FD3858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 833FD3858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.17 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732897692; cv=none; b=N7AbYK9bm484DpzWKa9IAX6zJw/35LQaxwCR72VmJtyZy+Ci5LwV6pp80F0WjK7bNBYLNguZR5exDC7ryDYjQd9ahI9fefSHhycnwC3y+wu9mOdbMYWOEiVhfzKgCoWtmN/2PBDnq9ll6vWTLfEloQHElDaCSVPvBdqu0GlSl/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732897692; c=relaxed/simple; bh=0Ageag/eaSV0OlXWQ+EoUX771gvz/lG7x7YwpURlKFw=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=fnrQcrNAl7DT2A+WwO9mJjHQh8O6UekAxj6WyRqisqsSYm/h1MQhioPnBxF5t9ULycqzTdLFYiv2kX26Yr7IOAoMXS+RyU1TElTS9fhOK49P08l3TPS228NbDS7uYc+tEhBGQxGzrlbDGnt7wSMKsxDiv24Bo3AVVye1uYs/y5c= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 833FD3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732897692; x=1764433692; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=0Ageag/eaSV0OlXWQ+EoUX771gvz/lG7x7YwpURlKFw=; b=bb49xoUWLFJuHwKqZiMoN/y/zwR0iocKWlrrSt2eFzianKp33BZfhBHz 9C0ogdZpZjsdMZKwtqKW3G2YBmp5B2tNBntzQAlrZNQtUMk+pPVRAE9ms QMl83/CUAO3oFLVk1AlMf59PLGg3CPIbYT0dEcfNLzKS9yuY3lgfUKM33 tpjD59Z6+86QA2kwMbrQvtQzZRZRt9YbX9lUTQ7A793OpgUr/aAD63Jgb EoRoOJXdgwQhBFCPRgkgC+i7o0IkjBWe9eoDpwXQHap0dqW4hC6tSi+L+ ll3rluq5viwh0qkRYZm7/o/vQabo4SRbjSNERT9tbTIt/5LGwtLrDIlS4 w==; X-CSE-ConnectionGUID: GO7DXejiSmaibw01f61+9g== X-CSE-MsgGUID: lkoqzvSOSsC2l2t2XOgXdw== X-IronPort-AV: E=McAfee;i="6700,10204,11271"; a="33189349" X-IronPort-AV: E=Sophos;i="6.12,196,1728975600"; d="scan'208";a="33189349" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2024 08:28:12 -0800 X-CSE-ConnectionGUID: y4HDvITsSOyridrFuXaGDw== X-CSE-MsgGUID: cZTZ9f7jT4es8Eq3DZaQVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,196,1728975600"; d="scan'208";a="115799493" Received: from 984fee0031af.jf.intel.com (HELO localhost) ([10.165.54.65]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2024 08:28:12 -0800 From: Stephan Rohr To: gdb-patches@sourceware.org Subject: [PATCH 1/1] testsuite, threads: add missing return statements Date: Fri, 29 Nov 2024 08:28:02 -0800 Message-Id: <20241129162802.1216434-2-stephan.rohr@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241129162802.1216434-1-stephan.rohr@intel.com> References: <20241129162802.1216434-1-stephan.rohr@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org From: "Rohr, Stephan" Add missing return statements in gdb.threads/process-exit-status-is-leader-exit-status.c and gdb.threads/next-fork-exec-other-thread.c --- gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c | 4 ++++ .../gdb.threads/process-exit-status-is-leader-exit-status.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c b/gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c index 0645b551e67..7694a894bef 100644 --- a/gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c +++ b/gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c @@ -50,6 +50,8 @@ worker_a (void *pArg) waitpid (pid, NULL, 0); usleep (5); } + + return NULL; } static void* @@ -61,6 +63,8 @@ worker_b (void *pArg) usleep (5); /* break here */ usleep (5); /* other line */ } + + return NULL; } int diff --git a/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.c b/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.c index 3fed562bd86..bd998f990a1 100644 --- a/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.c +++ b/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.c @@ -43,6 +43,7 @@ start (void *arg) int thread_return_value = *(int *) arg; do_exit (thread_return_value); + return NULL; } int