From 144edc536ff895d3bb14490a9c5d13de7605d893 Mon Sep 17 00:00:00 2001 From: Takashi Sawanaka Date: Wed, 6 Oct 2021 21:56:27 +0900 Subject: [PATCH] ShellFileOperations_test.cpp: Fix failed test --- Testing/GoogleTest/ShellFileOperations/ShellFileOperations_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Testing/GoogleTest/ShellFileOperations/ShellFileOperations_test.cpp b/Testing/GoogleTest/ShellFileOperations/ShellFileOperations_test.cpp index 636ea52c0..d7216f6f7 100644 --- a/Testing/GoogleTest/ShellFileOperations/ShellFileOperations_test.cpp +++ b/Testing/GoogleTest/ShellFileOperations/ShellFileOperations_test.cpp @@ -3,6 +3,7 @@ #include #include "UnicodeString.h" #include "ShellFileOperations.h" +#include "paths.h" namespace { @@ -48,8 +49,8 @@ namespace _tmkdir(_T("..\\..\\Data\\ShellFileOpTest")); ShellFileOperations ops; - ops.AddSourceAndDestination(_T("..\\..\\Data\\File1.txt"), - _T("..\\..\\Data\\ShellFileOpTest\\File1.txt")); + ops.AddSourceAndDestination(paths::GetLongPath(_T("..\\..\\Data\\File1.txt")), + paths::GetLongPath(_T("..\\..\\Data\\ShellFileOpTest\\File1.txt"))); ops.SetOperation(FO_COPY, FOF_NOCONFIRMMKDIR | FOF_NOCONFIRMATION); EXPECT_TRUE(ops.Run()); EXPECT_FALSE(ops.IsCanceled()); -- 2.11.0