mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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"
|
||||
"abcdefghijklmnopqrstuvwxyz3abcdefghijklmnopqrstuvwxyz2"
|
||||
"abcdefghijklmnopqrstuvwxyz1abcdefghijklmnopqrstuvwxyz0";
|
||||
EXPECT_EQ(fs::createUniqueFile(Twine(Path270), FileDescriptor, TempPath),
|
||||
EXPECT_EQ(fs::createUniqueFile(Path270, FileDescriptor, TempPath),
|
||||
errc::invalid_argument);
|
||||
// Relative path < 247 chars, no problem.
|
||||
const char *Path216 =
|
||||
@ -405,7 +405,7 @@ TEST_F(FileSystemTest, TempFiles) {
|
||||
"abcdefghijklmnopqrstuvwxyz5abcdefghijklmnopqrstuvwxyz4"
|
||||
"abcdefghijklmnopqrstuvwxyz3abcdefghijklmnopqrstuvwxyz2"
|
||||
"abcdefghijklmnopqrstuvwxyz1abcdefghijklmnopqrstuvwxyz0";
|
||||
ASSERT_NO_ERROR(fs::createTemporaryFile(Twine(Path216), "", TempPath));
|
||||
ASSERT_NO_ERROR(fs::createTemporaryFile(Path216, "", TempPath));
|
||||
ASSERT_NO_ERROR(fs::remove(Twine(TempPath)));
|
||||
#endif
|
||||
}
|
||||
@ -456,10 +456,10 @@ TEST_F(FileSystemTest, CreateDir) {
|
||||
// While we're here, prove that .. and . handling works in these long paths.
|
||||
const char *DotDotDirs = "\\..\\.\\b";
|
||||
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);
|
||||
// And clean up.
|
||||
ASSERT_NO_ERROR(fs::remove(Twine("b")));
|
||||
ASSERT_NO_ERROR(fs::remove("b"));
|
||||
ASSERT_NO_ERROR(fs::remove(
|
||||
Twine(LongDir.substr(0, LongDir.size() - strlen(DotDotDirs)))));
|
||||
ASSERT_NE(::SetCurrentDirectoryA(PreviousDir), 0);
|
||||
|
Loading…
Reference in New Issue
Block a user