From patchwork Thu Sep 10 10:30:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yonggang Luo X-Patchwork-Id: 11767447 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC90D112E for ; Thu, 10 Sep 2020 10:38:27 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5E8B920BED for ; Thu, 10 Sep 2020 10:38:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WBIi3akh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5E8B920BED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:34980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGJyE-00034g-5n for patchwork-qemu-devel@patchwork.kernel.org; Thu, 10 Sep 2020 06:38:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGJsx-0000r4-Mo; Thu, 10 Sep 2020 06:33:01 -0400 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:38749) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGJsu-0003FM-MN; Thu, 10 Sep 2020 06:32:59 -0400 Received: by mail-pl1-x641.google.com with SMTP id c3so702584plz.5; Thu, 10 Sep 2020 03:32:55 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=d4V5+f7th16w4eXVSrbBNtRXwx9t+794yZg73jLRtbY=; b=WBIi3akhold3nnkwriOk8R8ZZv7EoXy+jLRoDuFgjEnpOQROSaEsTJFLbeNqYKrSXR KaENTz6L5fMdZZdR2WbxJ0+VBvuHLpUuWqPmgfKSy8BQP7nu7m0ArJNN+zX+pFMXQpzt Eym0JMXgcOpGLFr8CPpof8nl5a77oCh6xUgNk7EWaLLDubVaQN0ysfGXKJGLW25SzEpG 3L5uEBANq+mRVTn6AWkabybue8WCH0fCmhx7LBYviA5XS3QJCYvDim/HTEsIpekAZ/tv QG+5YaH9FA0ySfDpciF0l7OoSGDnYadjOYYHOfVUZJfez4rdJFPsad2KP+T8MJx/ykRU +SBw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=d4V5+f7th16w4eXVSrbBNtRXwx9t+794yZg73jLRtbY=; b=glQTFXsLQesDyNGu8xnCx9jyQ8ALIJJoxWlIL+dpI60kTgiRISB0EqHB1c7PvPsoG1 DIu7x/x9eTzdTlRfbjudI7S3ZHwNO29AZF6xB9csWpBF1nQlTEPLiRD1jECiLhet3bdN z/MTRg4G4yXWMpMNK2uWP1Aj1OJYomuzEE4eBhqVMM7XG2VMW8i1u7fYczQApT5GnaGG Q+7n1WscHv4vztcsppFYDIHXsQxorqOrOgug6QhSW/UT76+uP1En1jUhTxkJqK/kVGU+ tFJi5mWcCn4SUBkdvOi5lVESV1eDqYcim6QGJqFvfUI7g6vmtv+fnelwIA+9XN9NHQHy RD5Q== X-Gm-Message-State: AOAM530k6wzTgpBecr/Ogc5IHx53xkjZV0UiKozLArkfS96rtAvFLTvO JBd0rkvRc3AnXwiu3fl7jGSdb5N8+x5299vG7wo= X-Google-Smtp-Source: ABdhPJykQI3wCt8tiD4L6nfxaL5wigKHjpAonOrdnBqzblGKbxe281ggWSTM8t1GZvLdoS3uxTxFng== X-Received: by 2002:a17:90a:ea0c:: with SMTP id w12mr4646656pjy.65.1599733974580; Thu, 10 Sep 2020 03:32:54 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id g21sm2000203pfh.30.2020.09.10.03.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 03:32:53 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH v7 16/25] vmstate: Fixes test-vmstate.c on msys2/mingw Date: Thu, 10 Sep 2020 18:30:50 +0800 Message-Id: <20200910103059.987-17-luoyonggang@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20200910103059.987-1-luoyonggang@gmail.com> References: <20200910103059.987-1-luoyonggang@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::641; envelope-from=luoyonggang@gmail.com; helo=mail-pl1-x641.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Thomas Huth , Ed Maste , Michael Roth , qemu-block@nongnu.org, Stefan Weil , Xie Changlong , Peter Lieven , Markus Armbruster , Max Reitz , Yonggang Luo , Gerd Hoffmann , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , Wen Congyang , Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Li-Wen Hsu Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" The vmstate are valid on win32, just need generate tmp path properly Signed-off-by: Yonggang Luo Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Daniel P. Berrangé --- tests/test-vmstate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c index f8de709a0b..fc38e93d29 100644 --- a/tests/test-vmstate.c +++ b/tests/test-vmstate.c @@ -34,7 +34,6 @@ #include "qemu/module.h" #include "io/channel-file.h" -static char temp_file[] = "/tmp/vmst.test.XXXXXX"; static int temp_fd; @@ -1487,6 +1486,8 @@ static void test_tmp_struct(void) int main(int argc, char **argv) { + g_autofree char *temp_file = g_strdup_printf( + "%s/vmst.test.XXXXXX", g_get_tmp_dir()); temp_fd = mkstemp(temp_file); module_call_init(MODULE_INIT_QOM);