test/*: fix Windows build using class FromNarrowPath

This commit is contained in:
Max Kellermann
2020-04-02 16:40:18 +02:00
parent 4d453a8313
commit 9c66b0414a
12 changed files with 30 additions and 19 deletions

View File

@@ -20,6 +20,7 @@
#include "fs/io/GunzipReader.hxx"
#include "fs/io/FileReader.hxx"
#include "fs/io/StdioOutputStream.hxx"
#include "fs/NarrowPath.hxx"
#include "util/PrintException.hxx"
#include <stdio.h>
@@ -62,7 +63,7 @@ try {
return EXIT_FAILURE;
}
Path path = Path::FromFS(argv[1]);
FromNarrowPath path = argv[1];
CopyGunzip(stdout, path);
return EXIT_SUCCESS;