From patchwork Mon Sep 7 20:04:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yonggang Luo X-Patchwork-Id: 11762175 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 0DDA11599 for ; Mon, 7 Sep 2020 20:06:44 +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 BFA372145D for ; Mon, 7 Sep 2020 20:06:43 +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="Zy6OGhbZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BFA372145D 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]:45292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFNPW-000884-UR for patchwork-qemu-devel@patchwork.kernel.org; Mon, 07 Sep 2020 16:06:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFNNq-0004o8-5w for qemu-devel@nongnu.org; Mon, 07 Sep 2020 16:04:58 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:44564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFNNo-0008Mx-PV for qemu-devel@nongnu.org; Mon, 07 Sep 2020 16:04:57 -0400 Received: by mail-pg1-x542.google.com with SMTP id 7so8467737pgm.11 for ; Mon, 07 Sep 2020 13:04:56 -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=b0+yDkPUAOPfrghGZz2GsdNXdMaVRYPMlhMxDHZVuTc=; b=Zy6OGhbZNcTQXJq8PT/O71NenYwRc9oGVlOIeGlbFzRqzxh82vI4Axu+uCrfvyfS+t Vp1PscEqSD/vHzMvXiJUV/TKNykvaKrS3Etf4HN7xVp2U9mxAMjm62fR5bEEqo9l/IJB C3rj+JYMvnwFklFTWfccmjMNE9qGXam6nsfW6dgY1oBhH2y39le5CBNAxUGnGdGG2qeA jeCT295p+m5QHn8N1FNGIQa3g8pHULj2T5Uyip3TKhKja4CBfqiXxmr9Q2H0ORWFmXTQ 3Tqlr2CXFPbw436bF/VSOy3+Ul8N2O7FTHRVYKozR61oGOI33AF4C7YS9bXFnormu4K7 xVcg== 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=b0+yDkPUAOPfrghGZz2GsdNXdMaVRYPMlhMxDHZVuTc=; b=FmPwmHBVm86h8DrbOaYkuDI2sBcUdRRtOQMtO/OEqDMBahXRKHfmZU8mKcvYuR725f TfCCglw0mcESDahBNmVmx+SZ/BKw4QeghJX6fFo8CLTrciA+7OM1Cvea1Y30H+i1DGAz FzL07rusoZQSi4mN5iNTVBTwEJEHbk5pZvI4O435K7RgATGU3Mp1aHnIsMWCe2YkqUvR WKMmj2ZrO8xTMysAuKsNnCKgR1Px6hxLPWRu0kSSJXFrc/7glEOfbNyJDsezU14O5y0C Gr0ucNjRr5t5dCBG0Td18buhE2cDpUS7Hw3gESSJgA/b5Yrek/XQkAlez2ZNDqfN4Uer KkDA== X-Gm-Message-State: AOAM530RfTNA3PvXx1q4SkOkbC0Mqay0wUzL/DUK7idDajr2Y7cfVsdy ENNs5n9SMTFF+TpGHXYBJqtMwhuA5GMzVBGS X-Google-Smtp-Source: ABdhPJwqtsDNWYK8YRMJXhNt+SrQiP4j3ceKmeae/k/yq5Q+7R7EM3ldPdQxeTRa9nIrAQYeJldMkw== X-Received: by 2002:a17:902:bd48:: with SMTP id b8mr20016949plx.139.1599509094965; Mon, 07 Sep 2020 13:04:54 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id 204sm8713098pfc.200.2020.09.07.13.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 13:04:54 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH 3/4] vmstate: Fixes test-vmstate.c on msys2/mingw Date: Tue, 8 Sep 2020 04:04:31 +0800 Message-Id: <20200907200432.2418-4-luoyonggang@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20200907200432.2418-1-luoyonggang@gmail.com> References: <20200907200432.2418-1-luoyonggang@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::542; envelope-from=luoyonggang@gmail.com; helo=mail-pg1-x542.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: Paolo Bonzini , Yonggang Luo , =?utf-8?q?Philippe_Mathieu-Daud=E8=8C=85?= , "Dr . David Alan Gilbert" , Juan Quintela 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 --- tests/test-vmstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c index f8de709a0b..4c453575bb 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,7 @@ 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);