From nobody Sun Apr 28 08:05:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1556125123; cv=none; d=zoho.com; s=zohoarc; b=Q/r0Q3cakYikCNpSSkAtV90GteQVaCNiHwHkjBaO9vJfyg6FPtdu39p0dBTNE+W/gaL3bzht7SfgKoLcS1SVYwjCwgBFnZTiCNDpRAdX0NGuXJ+s5bTn94oOa/2aoBa4d/g9g1LYuNZQYWgTM08pyR8EXpKhHJOv25Fr8sMSjh8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556125123; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=qGcmTmRjxTtfzsMPpU+zRKeFyxgpB+OAhRJowfpwSyo=; b=IvlgMy1fVjmwmk0LWCfJcodp3sSaLa9d3jSVjxdV6oFUAr8FCOi/YZ5dnYTcFozdGG0Ojnm/s32qUBqEVLMz0UOsljp2/6YICJuqYCO5spdaiM8Ng07nnionGqP/cycMtr5UmzQMvpY/WgI8F1nkfIQbGMISSJZlK+2diIqOJVg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1556125123340893.9714197081508; Wed, 24 Apr 2019 09:58:43 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 751DA30B7A0C; Wed, 24 Apr 2019 16:58:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A248B5D9C8; Wed, 24 Apr 2019 16:58:40 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2BE9C41F3D; Wed, 24 Apr 2019 16:58:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3OGwbcC009278 for ; Wed, 24 Apr 2019 12:58:37 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6C4401018A0E; Wed, 24 Apr 2019 16:58:37 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 65AD41001E6C for ; Wed, 24 Apr 2019 16:58:35 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9B5397C096 for ; Wed, 24 Apr 2019 16:58:34 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id c6so20461827wrm.1 for ; Wed, 24 Apr 2019 09:58:34 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id z74sm30568711wmc.2.2019.04.24.09.58.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 09:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zvTklhwDQU19gfJ3fA96sDNsGlhcK4U6x9xAgadYYu8=; b=Q+pfeLB/qQbvJdFcWATgaIrPdbwfKGj2WFtCr+fY4ngMoNL5adAs5sH3MQq6SlnzCY xGQoxfLhzNorAe44RGmvi2g+pLzzpVxi0Js57F2qxi55iA2scq4EVnt+JUFnkVILDl7g frfTjaqyKE4mIxK3bFEQ6C2a8dR0vd++VWfpnxFbM9gi6jhEnamQ2C/cKsUuNtu1l488 MvWvirx+tbhxC64TEeGngDLzytxIVCkV8E4VB9Uby1RzUGH0G5UrFse070ROO4Aw4tPa u5b/9gurUgqXQJzRTBqahPGtkqIdBMElLDh6fhOVYV/+bTUSFAS0GVVOsvJDxGP5F+Ve /ehw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zvTklhwDQU19gfJ3fA96sDNsGlhcK4U6x9xAgadYYu8=; b=l/8pJ6SIEvV5Xf8JIRwWMschU5Zn/2+Sj94iABOqVgsKYPOjhAEQaONEJ/lNvbc7WY alhv2AbevTWIh0JBgO7gfYgAndmJXlJ1BLN5COvlUy8iQaYQ/6iAAG3AAqKqmiNOZi3B b/TNThufYO+myUUfSyBvjs14wPP/uHh5Sq1b5sKnOE47WOOpWCzxGFf4+Wt5dJfptnzo xiC4IiG9cySleLX4PmOkFGvTHtTYhRfs2x6cp9jW8MxiiL6NLuvNIfoz5RvUUk8jIClV Lsq8QmG/B7kb1He87NuvO+8xCmyZHqURE+y3qHOMeo99ftYVW0lSC0vhPYS/9A4YfzI1 sBTQ== X-Gm-Message-State: APjAAAUYvc+p6zn8CrU/p7RwSbN6D7TeBfQtLVwoZ9pU1/9qDIPWNGDr h7OZkagFiMm5eSXXWaMDLkpIT+fO0leyyQ== X-Google-Smtp-Source: APXvYqznzIWHg2GO+q0nCsytQScYmBCoDV1KPBh3r3K+89aypIPAIMgbitdjV+9yk6Sw5Rl2LCauvA== X-Received: by 2002:a5d:52c6:: with SMTP id r6mr3810441wrv.131.1556125112770; Wed, 24 Apr 2019 09:58:32 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Wed, 24 Apr 2019 18:57:57 +0200 Message-Id: <20190424165756.4579-1-stamatis.iliass@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 24 Apr 2019 16:58:34 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 24 Apr 2019 16:58:34 +0000 (UTC) for IP:'209.85.221.66' DOMAIN:'mail-wr1-f66.google.com' HELO:'mail-wr1-f66.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.273 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.221.66 mail-wr1-f66.google.com 209.85.221.66 mail-wr1-f66.google.com X-Scanned-By: MIMEDefang 2.83 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: Ilias Stamatis Subject: [libvirt] [PATCH v2] test_driver: provide virDomainGetTime implementation X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 24 Apr 2019 16:58:42 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Implement testDomainGetTime by returning a fixed timestamp. Signed-off-by: Ilias Stamatis --- src/test/test_driver.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index d5eecf4b7f..9b78c5c2ca 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -1943,6 +1943,18 @@ testDomainGetState(virDomainPtr domain, return 0; } =20 +static int +testDomainGetTime(virDomainPtr dom ATTRIBUTE_UNUSED, + long long *seconds, + unsigned int *nseconds, + unsigned int flags ATTRIBUTE_UNUSED) +{ + *seconds =3D 627319920; + *nseconds =3D 0; + + return 0; +} + #define TEST_SAVE_MAGIC "TestGuestMagic" =20 static int @@ -6786,6 +6798,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .domainSetMemory =3D testDomainSetMemory, /* 0.1.4 */ .domainGetInfo =3D testDomainGetInfo, /* 0.1.1 */ .domainGetState =3D testDomainGetState, /* 0.9.2 */ + .domainGetTime =3D testDomainGetTime, /* 5.3.0 */ .domainSave =3D testDomainSave, /* 0.3.2 */ .domainSaveFlags =3D testDomainSaveFlags, /* 0.9.4 */ .domainRestore =3D testDomainRestore, /* 0.3.2 */ --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list