mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
Move FileSpecTest to Utility
FileSpec class was moved to the Utility module a while ago, but the test file was left behind. This corrects that. llvm-svn: 330405
This commit is contained in:
parent
3858e26f22
commit
0e0906c221
@ -1,5 +1,4 @@
|
||||
set (FILES
|
||||
FileSpecTest.cpp
|
||||
FileSystemTest.cpp
|
||||
HostInfoTest.cpp
|
||||
HostTest.cpp
|
||||
|
@ -4,6 +4,7 @@ add_lldb_unittest(UtilityTests
|
||||
CleanUpTest.cpp
|
||||
ConstStringTest.cpp
|
||||
EnvironmentTest.cpp
|
||||
FileSpecTest.cpp
|
||||
JSONTest.cpp
|
||||
LogTest.cpp
|
||||
NameMatchesTest.cpp
|
||||
|
@ -167,7 +167,7 @@ TEST(FileSpecTest, EqualDotsWindows) {
|
||||
{R"(C:\foo\bar)", R"(C:\foo\bar\.)"},
|
||||
};
|
||||
|
||||
for(const auto &test: tests) {
|
||||
for (const auto &test : tests) {
|
||||
FileSpec one(test.first, false, FileSpec::ePathSyntaxWindows);
|
||||
FileSpec two(test.second, false, FileSpec::ePathSyntaxWindows);
|
||||
EXPECT_NE(one, two);
|
||||
@ -176,7 +176,6 @@ TEST(FileSpecTest, EqualDotsWindows) {
|
||||
Compare(one, two, !full_match, remove_backup_dots, match);
|
||||
Compare(one, two, !full_match, !remove_backup_dots, !match);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TEST(FileSpecTest, EqualDotsPosix) {
|
||||
@ -191,7 +190,7 @@ TEST(FileSpecTest, EqualDotsPosix) {
|
||||
{R"(/foo/bar)", R"(/foo/bar/.)"},
|
||||
};
|
||||
|
||||
for(const auto &test: tests) {
|
||||
for (const auto &test : tests) {
|
||||
FileSpec one(test.first, false, FileSpec::ePathSyntaxPosix);
|
||||
FileSpec two(test.second, false, FileSpec::ePathSyntaxPosix);
|
||||
EXPECT_NE(one, two);
|
||||
@ -200,7 +199,6 @@ TEST(FileSpecTest, EqualDotsPosix) {
|
||||
Compare(one, two, !full_match, remove_backup_dots, match);
|
||||
Compare(one, two, !full_match, !remove_backup_dots, !match);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TEST(FileSpecTest, EqualDotsPosixRoot) {
|
||||
@ -208,10 +206,12 @@ TEST(FileSpecTest, EqualDotsPosixRoot) {
|
||||
const bool remove_backup_dots = true;
|
||||
const bool match = true;
|
||||
std::pair<const char *, const char *> tests[] = {
|
||||
{R"(/)", R"(/..)"}, {R"(/)", R"(/.)"}, {R"(/)", R"(/foo/..)"},
|
||||
{R"(/)", R"(/..)"},
|
||||
{R"(/)", R"(/.)"},
|
||||
{R"(/)", R"(/foo/..)"},
|
||||
};
|
||||
|
||||
for(const auto &test: tests) {
|
||||
for (const auto &test : tests) {
|
||||
FileSpec one(test.first, false, FileSpec::ePathSyntaxPosix);
|
||||
FileSpec two(test.second, false, FileSpec::ePathSyntaxPosix);
|
||||
EXPECT_NE(one, two);
|
Loading…
Reference in New Issue
Block a user