From nobody Fri Apr 26 16:20:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1669030984; cv=none; d=zohomail.com; s=zohoarc; b=KeYeEYIn8gGaWOtCXX8of0lmPck9awvUdj31EkbOgSEwszdLFj+NvTOO6BnvOp/jPfu94VtVsL9EIpZ04gvJhqTv8PuZFn7gJB1gVEOIED2UGGh9dq63saEexXVFOiB4N38Xt+7T/xLGpHRL097UxPY60S0o5iH5TItY38UgFF4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669030984; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=S6YWBJZUxWdHqGxf1QbuLjPPJ9tHPZpn1D+E4ROJnG8=; b=YQ3YYvY2MrMhkGqquwyYGKioEEcDhKO7F/uYjALSzE2/myg/m9x0sylnS9YcVlDv7uPZd7pZTHO9SWNXshzWhoZPPlkLempypDuHpF3I0N69gk0BEXA1hY0G61Ay4/piJuE9ZFS6wvFNuCUkxu9epnC6YG8NoMo17a8Z9NaWS+4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1669030984641558.2539909004109; Mon, 21 Nov 2022 03:43:04 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-637-GIyl6iTlPUyFmJMPTBnPdw-1; Mon, 21 Nov 2022 06:42:56 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 17ABF101A52A; Mon, 21 Nov 2022 11:42:54 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8CD6340C83AA; Mon, 21 Nov 2022 11:42:52 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 60C061946589; Mon, 21 Nov 2022 11:42:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 2E4641946587 for ; Mon, 21 Nov 2022 11:42:41 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 1878F2166B2E; Mon, 21 Nov 2022 11:42:41 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id B4A612166B26 for ; Mon, 21 Nov 2022 11:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669030982; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=S6YWBJZUxWdHqGxf1QbuLjPPJ9tHPZpn1D+E4ROJnG8=; b=DGQ62ITSTWITlupnWMl/E9ahDGm4imAPyt0EzNc+FUrYxCtwbvQe5ItvfojF7Mbmt6DWSY DPS6Thrxlssa0tAg+j5hEsCfFwrKDkXXkjRA1krEHILUDc4HhvVIafFf0QmaKLg7AmKnC3 3SS38PdryztPu6EnJaMi8XpA9fi6pT4= X-MC-Unique: GIyl6iTlPUyFmJMPTBnPdw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] tests: Drop needless virrandom mock from two tests Date: Mon, 21 Nov 2022 12:42:38 +0100 Message-Id: <2f064a71215a30248b86645660530814b384f39d.1669030958.git.mprivozn@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1669030986784100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Nothing in virnettlscontexttest nor virnettlssessiontest calls any of random number generator functions overridden virrandommock. GnuTLS handles RNG within itself. Therefore, there's no need to preload the mock. Signed-off-by: Michal Privoznik Reviewed-by: J=C3=A1n Tomko --- tests/virnettlscontexttest.c | 2 +- tests/virnettlssessiontest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/virnettlscontexttest.c b/tests/virnettlscontexttest.c index 403cd8d0ac..2311524db8 100644 --- a/tests/virnettlscontexttest.c +++ b/tests/virnettlscontexttest.c @@ -627,7 +627,7 @@ mymain(void) return ret =3D=3D 0 ? EXIT_SUCCESS : EXIT_FAILURE; } =20 -VIR_TEST_MAIN_PRELOAD(mymain, VIR_TEST_MOCK("virrandom")) +VIR_TEST_MAIN(mymain); =20 #else =20 diff --git a/tests/virnettlssessiontest.c b/tests/virnettlssessiontest.c index 5b98a6de3e..285cde57d8 100644 --- a/tests/virnettlssessiontest.c +++ b/tests/virnettlssessiontest.c @@ -482,7 +482,7 @@ mymain(void) return ret =3D=3D 0 ? EXIT_SUCCESS : EXIT_FAILURE; } =20 -VIR_TEST_MAIN_PRELOAD(mymain, VIR_TEST_MOCK("virrandom")) +VIR_TEST_MAIN(mymain); =20 #else =20 --=20 2.37.4