mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Remove unused has_magic.
This will allow inlining get_magic, which should in turn fix one of the mingw build problems after the switch to std::error_code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210712 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -46,11 +46,7 @@ TEST(FileOutputBuffer, Test) {
|
||||
// Commit buffer.
|
||||
ASSERT_NO_ERROR(Buffer->commit());
|
||||
}
|
||||
// Verify file exists and starts with special header.
|
||||
bool MagicMatches = false;
|
||||
ASSERT_NO_ERROR(fs::has_magic(Twine(File1), Twine("AABBCCDDEEFFGGHHIIJJ"),
|
||||
MagicMatches));
|
||||
EXPECT_TRUE(MagicMatches);
|
||||
|
||||
// Verify file is correct size.
|
||||
uint64_t File1Size;
|
||||
ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size));
|
||||
@ -86,11 +82,7 @@ TEST(FileOutputBuffer, Test) {
|
||||
// Commit buffer, but size down to smaller size
|
||||
ASSERT_NO_ERROR(Buffer->commit(5000));
|
||||
}
|
||||
// Verify file exists and starts with special header.
|
||||
bool MagicMatches3 = false;
|
||||
ASSERT_NO_ERROR(fs::has_magic(Twine(File3), Twine("AABBCCDDEEFFGGHHIIJJ"),
|
||||
MagicMatches3));
|
||||
EXPECT_TRUE(MagicMatches3);
|
||||
|
||||
// Verify file is correct size.
|
||||
uint64_t File3Size;
|
||||
ASSERT_NO_ERROR(fs::file_size(Twine(File3), File3Size));
|
||||
|
Reference in New Issue
Block a user