Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp353645lqp; Wed, 12 Jun 2024 03:45:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUL4rdNxbUZw/5SVD3+Xpm74X0aqZ1RLSB9m9vyIkkYR9HBnWsVNjbaCbnL/yjHEdcimYlv2wZehvuNZazcX3reCNgdfkPu4YVg4fJTvA== X-Google-Smtp-Source: AGHT+IGqsCfj7Otp276rgmCh1csTTZFlDWtPH76qm8IjPEHcZh7CaEmh9YLIyJ122KWahgOlAnBM X-Received: by 2002:a50:8d13:0:b0:57a:2586:b2ed with SMTP id 4fb4d7f45d1cf-57ca9756973mr944669a12.4.1718189143532; Wed, 12 Jun 2024 03:45:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718189143; cv=pass; d=google.com; s=arc-20160816; b=Sa5tvjCLjgTmbVLt3PD2EblSVlaCSd8I6qAasCWISEeliqRxpL179llB22gX0zWZSp UMVUlcV/sSJsoiiqJ/t8PP3MNlSk3uGaXTObLcHCwdDEQWc+ZEFMtGVgwTN1KInsQe/K XluwreFVNL51BU78SFVEsnnJiQ8DsxbksWzx9yvCYUt25mkj7L+eWtQL2MYFiv3MTCr9 NrF7Nl+f/Ctw2/ny2/0/vVRhlaY6gRFSqVKtuLcU/9uwZX05/ULQ2vHKVvDq3fYhhs2l blJk2r/8Uy+FwJdK8953Jwi4vUX5fWtydvTWtU7tJIEbqIerp+cGOySD0Ya2qnSk2m+4 zPvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hL8ARCgtGm3KdJ2uMXqmm203OdJw9nAmD1cd5AQp/a0=; fh=iMYrs1LK4Hmh8ScuozHWrcLKOx7gbRfO1YDfTwus3JI=; b=ajab/ysobcuu0a1OvcNB1N8dEA7XOSjFNJQiYWGvUeV7EoguBL7REq6iEyaPKYHF5F BFr/YKEwyfP9a64z2NU8h3No+FeKUC4mF+cwV1J4wTOg2mrPiaZeg6Mwp4fFWKsfKvYj zMgeKSHeTWicnZ8fE8Yg3I4UOqz+g6KguNPPUDj1BC7JWEZfQsctpd8ocJwsbJVSLvMF JXBRKK4/EyU9CbkiqwZTP2e7Am5Hegaw3Mb398oHxooFtqdoZZdnEsjGog2HE8slTWgm 17kQib64CXqlPLmyxCi8fO7cr5C1ZC0C4Vco/dyJjCpvs1ABmj9J0PKQVikTB/sYTVqT Nj7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lDAW1UK9; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-211365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cad328598si373555a12.524.2024.06.12.03.45.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 03:45:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lDAW1UK9; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-211365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4314D1F2414C for ; Wed, 12 Jun 2024 10:45:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C13516F0E8; Wed, 12 Jun 2024 10:45:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="lDAW1UK9" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 6F7B016F0CB; Wed, 12 Jun 2024 10:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718189115; cv=none; b=NpqfOPooyNKHi3+UMQQoLpACH7GE8H7Y2myQWdOTfmQTUbb3JFFkkx7D+67Ia4fYHGppl46rPrp12ehFPvh14qH5QBxE+5uu1teiwinSjenUJP00H5q884bzXaYs4pLMFQya4AY4C1RbGcqvOJVcRwdsrP+lOUEykAWWbazlzmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718189115; c=relaxed/simple; bh=7KBVdtrVyLAPbuJcgaNyt4TEuscLxt+vNyICK4BFFWs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nctv1X3jIiqvC45B3WmRazPPCW1LAMYA4NQDQ7Dpu/avfaLSbxHDHg5dYqBbabI8totoKav4LtJuWtO/6QKGn25EAqwbjFiOYRlCaj+VBTRM+NKuqAxHUNFiiUn42Ucl8MqMuARY+ETZa/lfBmfuySnkNby7x71r3tWvRQBDsio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=lDAW1UK9; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718189112; bh=7KBVdtrVyLAPbuJcgaNyt4TEuscLxt+vNyICK4BFFWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lDAW1UK9XSiFTbaMyIXs26KjiQuqRgfPtZ/wTBP71dndmPiobFX8h1+7AapHudFWk QAPwCnqFlPi6oveoy7HtuXlkzqvP9GKETMnypvHWy4Gcp5sGw51CCdckMFeXrVZpMq OLii7gHCAr66NsdX0P/nWn+gKMUivLj10TEwrtsTy6FNSoO+tNW+6JtR+P4DW3/GAf PNCgvi5n6HbSAT7yRo6CiPsw6zSqUP/vEOPjZRauihDRDhyjXCNffHAV5xsTtrb/Zk VawiM6otyI0AD3R/Sc/6xZaKjz/hDEXPjyvn+X1rWIpBHkRXNFyZgfrCj1xjQGYqXW +KsMgg+TxZoGA== Received: from localhost.localdomain (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id E35EF378219A; Wed, 12 Jun 2024 10:45:09 +0000 (UTC) From: Muhammad Usama Anjum To: Paolo Bonzini , Shuah Khan , Muhammad Usama Anjum , Anup Patel , Sean Christopherson , Oliver Upton , Claudio Imbrenda Cc: kernel@collabora.com, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] selftests: kvm: replace exit() with ksft_exit_fail_msg() Date: Wed, 12 Jun 2024 15:44:54 +0500 Message-Id: <20240612104500.425012-2-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240612104500.425012-1-usama.anjum@collabora.com> References: <20240612104500.425012-1-usama.anjum@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The KSFT_FAIL, exit code must be used instead of exit(254). The 254 code here seems like anciant relic. Its even better if we use ksft_exit_fail_msg() which will print out "Bail out" meaning the test exited without completing. This string is TAP protocol specific. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/kvm/lib/assert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/lib/assert.c b/tools/testing/selftests/kvm/lib/assert.c index 33651f5b3a7fd..db648a7ac429b 100644 --- a/tools/testing/selftests/kvm/lib/assert.c +++ b/tools/testing/selftests/kvm/lib/assert.c @@ -87,7 +87,7 @@ test_assert(bool exp, const char *exp_str, if (errno == EACCES) ksft_exit_skip("Access denied - Exiting\n"); - exit(254); + ksft_exit_fail_msg("\n"); } return; -- 2.39.2