summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorZach Hilman <DarkLordZach@users.noreply.github.com>2018-07-19 03:07:11 +0200
committerbunnei <bunneidev@gmail.com>2018-07-19 03:07:11 +0200
commit29aff8d5ab46c8d0199aa4bfa7eeff5d4fa2d7ef (patch)
tree3202e2ce55ab6387a4ca366a509eccdd963434c3 /src/tests
parentMerge pull request #683 from DarkLordZach/touch (diff)
downloadyuzu-29aff8d5ab46c8d0199aa4bfa7eeff5d4fa2d7ef.tar
yuzu-29aff8d5ab46c8d0199aa4bfa7eeff5d4fa2d7ef.tar.gz
yuzu-29aff8d5ab46c8d0199aa4bfa7eeff5d4fa2d7ef.tar.bz2
yuzu-29aff8d5ab46c8d0199aa4bfa7eeff5d4fa2d7ef.tar.lz
yuzu-29aff8d5ab46c8d0199aa4bfa7eeff5d4fa2d7ef.tar.xz
yuzu-29aff8d5ab46c8d0199aa4bfa7eeff5d4fa2d7ef.tar.zst
yuzu-29aff8d5ab46c8d0199aa4bfa7eeff5d4fa2d7ef.zip
Diffstat (limited to '')
-rw-r--r--src/tests/CMakeLists.txt1
-rw-r--r--src/tests/core/file_sys/path_parser.cpp38
2 files changed, 0 insertions, 39 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 12f1b93e0..6a0a62ecc 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -3,7 +3,6 @@ add_executable(tests
core/arm/arm_test_common.cpp
core/arm/arm_test_common.h
core/core_timing.cpp
- core/file_sys/path_parser.cpp
core/memory/memory.cpp
glad.cpp
tests.cpp
diff --git a/src/tests/core/file_sys/path_parser.cpp b/src/tests/core/file_sys/path_parser.cpp
deleted file mode 100644
index 2b543e438..000000000
--- a/src/tests/core/file_sys/path_parser.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2016 Citra Emulator Project
-// Licensed under GPLv2 or any later version
-// Refer to the license.txt file included.
-
-#include <catch.hpp>
-#include "common/file_util.h"
-#include "core/file_sys/path_parser.h"
-
-namespace FileSys {
-
-TEST_CASE("PathParser", "[core][file_sys]") {
- REQUIRE(!PathParser(Path(std::vector<u8>{})).IsValid());
- REQUIRE(!PathParser(Path("a")).IsValid());
- REQUIRE(!PathParser(Path("/|")).IsValid());
- REQUIRE(PathParser(Path("/a")).IsValid());
- REQUIRE(!PathParser(Path("/a/b/../../c/../../d")).IsValid());
- REQUIRE(PathParser(Path("/a/b/../c/../../d")).IsValid());
- REQUIRE(PathParser(Path("/")).IsRootDirectory());
- REQUIRE(!PathParser(Path("/a")).IsRootDirectory());
- REQUIRE(PathParser(Path("/a/..")).IsRootDirectory());
-}
-
-TEST_CASE("PathParser - Host file system", "[core][file_sys]") {
- std::string test_dir = "./test";
- FileUtil::CreateDir(test_dir);
- FileUtil::CreateDir(test_dir + "/z");
- FileUtil::CreateEmptyFile(test_dir + "/a");
-
- REQUIRE(PathParser(Path("/a")).GetHostStatus(test_dir) == PathParser::FileFound);
- REQUIRE(PathParser(Path("/b")).GetHostStatus(test_dir) == PathParser::NotFound);
- REQUIRE(PathParser(Path("/z")).GetHostStatus(test_dir) == PathParser::DirectoryFound);
- REQUIRE(PathParser(Path("/a/c")).GetHostStatus(test_dir) == PathParser::FileInPath);
- REQUIRE(PathParser(Path("/b/c")).GetHostStatus(test_dir) == PathParser::PathNotFound);
-
- FileUtil::DeleteDirRecursively(test_dir);
-}
-
-} // namespace FileSys