Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5918553ybf; Thu, 5 Mar 2020 09:27:21 -0800 (PST) X-Google-Smtp-Source: ADFU+vsRn8pihEzewwiJvrIvLifZwaYc1IGByzNERa0Cot1MhDyST1r4HtALiU8//p9gW0gH+fiL X-Received: by 2002:a05:6830:1d7:: with SMTP id r23mr3222687ota.181.1583429241350; Thu, 05 Mar 2020 09:27:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583429241; cv=none; d=google.com; s=arc-20160816; b=Mb0/AZElSI8phmAEXHj3meBVGk4dDrFEz/kH4WS37sefLB/S06adgnwTnPfY04mIug IGShFcZ63Mqk3jOZrAeGQdB0/EJMlhjDMmu189amv6IzSCgoD+7C0lfFOUXAprASzxYF rpSEXLxZUTLwrYmdt5N3IBtPapc7XNbZobHDP9oblNJpne5p0VIMzL/OSpJ26hf+04HV J9WiwAxA92S6oRgigkfQ5fDyMcnqVQPSyuH9Sy2Esh4V5JdVN30ohXyO87uq8n5cMLCc 4IihHI1h6/PX+v9zMGss7Ej+7i3IONR0nGXgIx8L2lASeOfuhoYR2K6HNTU2164Tjqsp h1zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=LNaeYUuZ/I8N5sWDPpA8Jaa5r8899vfI3fz+QN5P+JQ=; b=f5rSUcYDrWdIwgGlCNBKRpp6DgtaMX11jfUA8dxf3TrO9prOPiAa1d7LWTxHCrgs0u Jp5miqkmz/bhEUuHcIPP+U3wqYuBmtjwQScJHAgKZmGnNRb/OymFUuT2rECbAZbg9ERg vZi/N6muw2TcfFoODxN+18SbX2iD9Cynf4phVZlFFyUeOu1j1vZJ/UHtxfbnUn5QUw53 pFgeMUcuOT8q8FjfPkU9qmPMS0utlspucwKGwpGVngP+4Mp0eJDiwphgRFnBs7U5Mmrd 9WOI71xCVCzsTPcYMwudRZLMeV7WXD0Zos+aNlNjOkgxJu1wjmmhFwkxzJ950XDg9ipP psCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IYbAITBp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 83si3818533oie.242.2020.03.05.09.27.09; Thu, 05 Mar 2020 09:27:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IYbAITBp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726143AbgCERZu (ORCPT + 99 others); Thu, 5 Mar 2020 12:25:50 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:33858 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725938AbgCERZt (ORCPT ); Thu, 5 Mar 2020 12:25:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583429148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=LNaeYUuZ/I8N5sWDPpA8Jaa5r8899vfI3fz+QN5P+JQ=; b=IYbAITBpPGA9mko9U1WWd+yI5eq1lE4e4oPdV82mVJ21f9COss20jKa2hmDNUKgVt9IdSb zj81D+Y971N8ecGJBv8FKijv6Qa9gooEsaEz+vIinY0I+elRqXx6rzRYnAekfweHMsuaNU Gnqart5c8f+u1SYXcX+cxFifPdk4XOc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-311-gvySo0gPN4e7waaKGzfUMA-1; Thu, 05 Mar 2020 12:25:47 -0500 X-MC-Unique: gvySo0gPN4e7waaKGzfUMA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D1B9C1005509; Thu, 5 Mar 2020 17:25:45 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-124.gru2.redhat.com [10.97.116.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id 704005C219; Thu, 5 Mar 2020 17:25:41 +0000 (UTC) From: Wainer dos Santos Moschetta To: kvm@vger.kernel.org, pbonzini@redhat.com Cc: shuah@kernel.org, tglx@linutronix.de, thuth@redhat.com, sean.j.christopherson@intel.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/1] kvm: selftests: Add TEST_FAIL macro Date: Thu, 5 Mar 2020 14:25:31 -0300 Message-Id: <20200305172532.9360-1-wainersm@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following patch's commit message is self-explanatory about this proposal. I adjusted to use TEST_FAIL only a few source files, in reality it will need to change all the ones listed below. I will proceed with the adjustments if this new macro idea is accepted. $ find . -type f -name "*.c" -exec grep -l "TEST_ASSERT(false" {} \; ./lib/kvm_util.c ./lib/io.c ./lib/x86_64/processor.c ./lib/aarch64/ucall.c ./lib/aarch64/processor.c ./x86_64/vmx_dirty_log_test.c ./x86_64/state_test.c ./x86_64/vmx_tsc_adjust_test.c ./x86_64/svm_vmcall_test.c ./x86_64/evmcs_test.c ./x86_64/vmx_close_while_nested_test.c Wainer dos Santos Moschetta (1): kvm: selftests: Add TEST_FAIL macro tools/testing/selftests/kvm/dirty_log_test.c | 7 +++---- tools/testing/selftests/kvm/include/test_util.h | 3 +++ tools/testing/selftests/kvm/x86_64/cr4_cpuid_sync_test.c | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) -- 2.17.2