mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Drop a few unneeded ctor calls (missed code review comment).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8839439547
commit
4848765635
@ -397,7 +397,7 @@ TEST_F(FileSystemTest, TempFiles) {
|
|||||||
"abcdefghijklmnopqrstuvwxyz5abcdefghijklmnopqrstuvwxyz4"
|
"abcdefghijklmnopqrstuvwxyz5abcdefghijklmnopqrstuvwxyz4"
|
||||||
"abcdefghijklmnopqrstuvwxyz3abcdefghijklmnopqrstuvwxyz2"
|
"abcdefghijklmnopqrstuvwxyz3abcdefghijklmnopqrstuvwxyz2"
|
||||||
"abcdefghijklmnopqrstuvwxyz1abcdefghijklmnopqrstuvwxyz0";
|
"abcdefghijklmnopqrstuvwxyz1abcdefghijklmnopqrstuvwxyz0";
|
||||||
EXPECT_EQ(fs::createUniqueFile(Twine(Path270), FileDescriptor, TempPath),
|
EXPECT_EQ(fs::createUniqueFile(Path270, FileDescriptor, TempPath),
|
||||||
errc::invalid_argument);
|
errc::invalid_argument);
|
||||||
// Relative path < 247 chars, no problem.
|
// Relative path < 247 chars, no problem.
|
||||||
const char *Path216 =
|
const char *Path216 =
|
||||||
@ -405,7 +405,7 @@ TEST_F(FileSystemTest, TempFiles) {
|
|||||||
"abcdefghijklmnopqrstuvwxyz5abcdefghijklmnopqrstuvwxyz4"
|
"abcdefghijklmnopqrstuvwxyz5abcdefghijklmnopqrstuvwxyz4"
|
||||||
"abcdefghijklmnopqrstuvwxyz3abcdefghijklmnopqrstuvwxyz2"
|
"abcdefghijklmnopqrstuvwxyz3abcdefghijklmnopqrstuvwxyz2"
|
||||||
"abcdefghijklmnopqrstuvwxyz1abcdefghijklmnopqrstuvwxyz0";
|
"abcdefghijklmnopqrstuvwxyz1abcdefghijklmnopqrstuvwxyz0";
|
||||||
ASSERT_NO_ERROR(fs::createTemporaryFile(Twine(Path216), "", TempPath));
|
ASSERT_NO_ERROR(fs::createTemporaryFile(Path216, "", TempPath));
|
||||||
ASSERT_NO_ERROR(fs::remove(Twine(TempPath)));
|
ASSERT_NO_ERROR(fs::remove(Twine(TempPath)));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -456,10 +456,10 @@ TEST_F(FileSystemTest, CreateDir) {
|
|||||||
// While we're here, prove that .. and . handling works in these long paths.
|
// While we're here, prove that .. and . handling works in these long paths.
|
||||||
const char *DotDotDirs = "\\..\\.\\b";
|
const char *DotDotDirs = "\\..\\.\\b";
|
||||||
LongDir.append(DotDotDirs);
|
LongDir.append(DotDotDirs);
|
||||||
ASSERT_NO_ERROR(fs::create_directory(Twine("b")));
|
ASSERT_NO_ERROR(fs::create_directory("b"));
|
||||||
ASSERT_EQ(fs::create_directory(Twine(LongDir), false), errc::file_exists);
|
ASSERT_EQ(fs::create_directory(Twine(LongDir), false), errc::file_exists);
|
||||||
// And clean up.
|
// And clean up.
|
||||||
ASSERT_NO_ERROR(fs::remove(Twine("b")));
|
ASSERT_NO_ERROR(fs::remove("b"));
|
||||||
ASSERT_NO_ERROR(fs::remove(
|
ASSERT_NO_ERROR(fs::remove(
|
||||||
Twine(LongDir.substr(0, LongDir.size() - strlen(DotDotDirs)))));
|
Twine(LongDir.substr(0, LongDir.size() - strlen(DotDotDirs)))));
|
||||||
ASSERT_NE(::SetCurrentDirectoryA(PreviousDir), 0);
|
ASSERT_NE(::SetCurrentDirectoryA(PreviousDir), 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user