Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp208475ybh; Mon, 9 Mar 2020 19:51:44 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv14VqQUjL6zXZVd1H7EsPdCQauVCn2yHPNfL0D2W+E/EzI198w2dEfrfqaeS7aP2WF7Lua X-Received: by 2002:a05:6808:b2d:: with SMTP id t13mr1566980oij.107.1583808703998; Mon, 09 Mar 2020 19:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583808703; cv=none; d=google.com; s=arc-20160816; b=QsO4BdkALSF9xsKH2jplcc8BPjXazn1YjssQoZKatvpqHJvEcD+8bDO3HNigo0/404 +CozCqmhQbNfF6dQOOqI07WB24RppBsfYlGfowxpCeRxnWU/VVUgotfJsKm0e3FplGrc kqKHpcuRlEEHdoIr4lMGkqxus8PvuGjmtkRrjaRtzM/wVWShh++I13tHLMQECUZJEe6A El9mHGFrgJ7FBbx8clE1ESRBJ1H2829MtSn/ObvzkLHI5QnhS5PdvzEoQ429azmqy1Sq UpY3rK7T/fhg//ftFfy/4CNykD/VZchnpMe22vnDiw9cQiLDhM9pN+fp2ZIqYqcjqDZh DJwQ== 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=R6peiWc+YqZetn/lw3+wRj0vYCDROkZKsrBmpaORfr4=; b=TokkHf9/W82rKi/8Cf6XXt4R9nUpv4d5/JhrbpFxvW5W+fAZvmAhK72KpWe8/odWec 5tlhcZEfWzBsBS7NSjTnQYDM8Qy8qj3J1UccS+VF0isTc3cuHeim4Cxahk1lcnKVDmRX ueJYj1HhrRUjYzqlfzbOSTL62w3IrdQ/WRtwU8JqYsdaQWiJbyskuPksnNNMYFFdc+jv vg66KV1zVSFoTVrj/Pgn1NSIfA3gZYg4Ljwe6R8z91tURoMlKClU/LwWl495t0AJmftk vvwpSONiOrzYrUBGOV1hAAPYymHxRrr61d+NISoq9TE2MyF+BbaOMRE4cKI1aSz0KM6d raRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I10mjx8D; 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 65si5499766oif.14.2020.03.09.19.51.31; Mon, 09 Mar 2020 19:51:43 -0700 (PDT) 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=I10mjx8D; 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 S1726703AbgCJCvN (ORCPT + 99 others); Mon, 9 Mar 2020 22:51:13 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:51477 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726402AbgCJCvN (ORCPT ); Mon, 9 Mar 2020 22:51:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583808671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=R6peiWc+YqZetn/lw3+wRj0vYCDROkZKsrBmpaORfr4=; b=I10mjx8DOQjXevohny2+BbnqasunkNN3m3vb3LXsaS9ujbKPj+B6PVmwglCF5hKOF8HGeh tVw0SFz41ZQ+zjSpzntxp5LosUAmxBXDp2FyB+Un5PnAy5BYQGK6HSAe583WGyMW5s35DR cfn8YwIs2WyLHWkf+/et2DNvBKNE3GU= 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-184-DaKKvYlVNG2EElH1V4v2nw-1; Mon, 09 Mar 2020 22:51:08 -0400 X-MC-Unique: DaKKvYlVNG2EElH1V4v2nw-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 D0FC0800D48; Tue, 10 Mar 2020 02:51:06 +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 E31235C1C3; Tue, 10 Mar 2020 02:51:02 +0000 (UTC) From: Wainer dos Santos Moschetta To: kvm@vger.kernel.org, pbonzini@redhat.com Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, sean.j.christopherson@intel.com, shuah@kernel.org, tglx@linutronix.de, thuth@redhat.com Subject: [PATCH v2 0/2] kvm: selftests: Introduce TEST_FAIL and convert Date: Mon, 9 Mar 2020 23:50:57 -0300 Message-Id: <20200310025059.9301-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 Introduce the TEST_FAIL macro and change the tests/utilities to use it. v1 -> v2: - Completed the conversion to TEST_FAIL. v1: - [RFC PATCH 0/1] kvm: selftests: Add TEST_FAIL macro https://lore.kernel.org/kvm/20200305172532.9360-1-wainersm@redhat.com/ Wainer dos Santos Moschetta (2): selftests: kvm: Introduce the TEST_FAIL macro selftests: kvm: Uses TEST_FAIL in tests/utilities tools/testing/selftests/kvm/dirty_log_test.c | 7 +++---- .../testing/selftests/kvm/include/test_util.h | 3 +++ .../selftests/kvm/lib/aarch64/processor.c | 17 +++++++-------- .../testing/selftests/kvm/lib/aarch64/ucall.c | 2 +- tools/testing/selftests/kvm/lib/io.c | 12 +++++------ tools/testing/selftests/kvm/lib/kvm_util.c | 21 ++++++++----------- .../selftests/kvm/lib/x86_64/processor.c | 5 ++--- .../kvm/x86_64/cr4_cpuid_sync_test.c | 4 ++-- .../testing/selftests/kvm/x86_64/evmcs_test.c | 6 +++--- .../testing/selftests/kvm/x86_64/state_test.c | 6 +++--- .../selftests/kvm/x86_64/svm_vmcall_test.c | 6 ++---- .../kvm/x86_64/vmx_close_while_nested_test.c | 4 ++-- .../selftests/kvm/x86_64/vmx_dirty_log_test.c | 6 +++--- .../kvm/x86_64/vmx_tsc_adjust_test.c | 4 ++-- 14 files changed, 49 insertions(+), 54 deletions(-) -- 2.17.2