summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/TarWriterTest.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-12-05 10:35:11 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-12-05 10:35:11 +0000
commit08f5986e4d0878b69f2b4449a570877431f6d462 (patch)
tree5872607ff47e004f4023dbe85edf056d2e09dfa6 /llvm/unittests/Support/TarWriterTest.cpp
parent2da3397cdfd22be99e5752c18f0bbd0f75970acc (diff)
downloadbcm5719-llvm-08f5986e4d0878b69f2b4449a570877431f6d462.tar.gz
bcm5719-llvm-08f5986e4d0878b69f2b4449a570877431f6d462.zip
Fix build bot after r319750 "[Support/TarWriter] - Don't allow TarWriter to add the same file more than once."
Error was: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare] http://lab.llvm.org:8011/builders/ubuntu-gcc7.1-werror/builds/3469/steps/build-unified-tree/logs/stdio http://lab.llvm.org:8011/builders/clang-with-thin-lto-ubuntu/builds/7118/steps/build-stage2-compiler/logs/stdio llvm-svn: 319752
Diffstat (limited to 'llvm/unittests/Support/TarWriterTest.cpp')
-rw-r--r--llvm/unittests/Support/TarWriterTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Support/TarWriterTest.cpp b/llvm/unittests/Support/TarWriterTest.cpp
index 548efcade93..901dd906ca7 100644
--- a/llvm/unittests/Support/TarWriterTest.cpp
+++ b/llvm/unittests/Support/TarWriterTest.cpp
@@ -136,7 +136,7 @@ TEST_F(TarWriterTest, SingleFile) {
uint64_t TarSize;
EC = sys::fs::file_size(Path, TarSize);
EXPECT_FALSE((bool)EC);
- EXPECT_EQ(TarSize, 2048);
+ EXPECT_EQ(TarSize, 2048ULL);
}
TEST_F(TarWriterTest, NoDuplicate) {
@@ -155,7 +155,7 @@ TEST_F(TarWriterTest, NoDuplicate) {
uint64_t TarSize;
EC = sys::fs::file_size(Path, TarSize);
EXPECT_FALSE((bool)EC);
- EXPECT_EQ(TarSize, 3072);
+ EXPECT_EQ(TarSize, 3072ULL);
}
TEST_F(TarWriterTest, Duplicate) {
@@ -174,6 +174,6 @@ TEST_F(TarWriterTest, Duplicate) {
uint64_t TarSize;
EC = sys::fs::file_size(Path, TarSize);
EXPECT_FALSE((bool)EC);
- EXPECT_EQ(TarSize, 2048);
+ EXPECT_EQ(TarSize, 2048ULL);
}
} // namespace
OpenPOWER on IntegriCloud