summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/FileOutputBufferTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-12-12 17:35:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-12-12 17:35:34 +0000
commit5753cf3c6371ef269da3f645afbabb2fd92ae56e (patch)
treecb2fe66cbc5548053613f1a57610a9121e2fe5da /llvm/unittests/Support/FileOutputBufferTest.cpp
parent231f714e5441f73394f5c0421bb3f0f83ffd7ad2 (diff)
downloadbcm5719-llvm-5753cf3c6371ef269da3f645afbabb2fd92ae56e.tar.gz
bcm5719-llvm-5753cf3c6371ef269da3f645afbabb2fd92ae56e.zip
Remove unused feature. NFC.
llvm-svn: 224135
Diffstat (limited to 'llvm/unittests/Support/FileOutputBufferTest.cpp')
-rw-r--r--llvm/unittests/Support/FileOutputBufferTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/Support/FileOutputBufferTest.cpp b/llvm/unittests/Support/FileOutputBufferTest.cpp
index 911d51613b1..c5e67d668ed 100644
--- a/llvm/unittests/Support/FileOutputBufferTest.cpp
+++ b/llvm/unittests/Support/FileOutputBufferTest.cpp
@@ -80,14 +80,13 @@ TEST(FileOutputBuffer, Test) {
memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20);
// Write to end of buffer to verify it is writable.
memcpy(Buffer->getBufferEnd() - 20, "AABBCCDDEEFFGGHHIIJJ", 20);
- // Commit buffer, but size down to smaller size
- ASSERT_NO_ERROR(Buffer->commit(5000));
+ ASSERT_NO_ERROR(Buffer->commit());
}
// Verify file is correct size.
uint64_t File3Size;
ASSERT_NO_ERROR(fs::file_size(Twine(File3), File3Size));
- ASSERT_EQ(File3Size, 5000ULL);
+ ASSERT_EQ(File3Size, 8192000ULL);
ASSERT_NO_ERROR(fs::remove(File3.str()));
// TEST 4: Verify file can be made executable.
OpenPOWER on IntegriCloud