OSDN Git Service

ShellFileOperations_test.cpp: Fix failed test
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Wed, 6 Oct 2021 12:56:27 +0000 (21:56 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Wed, 6 Oct 2021 12:56:27 +0000 (21:56 +0900)
Testing/GoogleTest/ShellFileOperations/ShellFileOperations_test.cpp

index 636ea52..d7216f6 100644 (file)
@@ -3,6 +3,7 @@
 #include <vector>
 #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());