summaryrefslogtreecommitdiff
path: root/test/libapt/cdrom_test.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2018-05-04 18:24:57 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2018-05-04 18:42:37 +0200
commit1d77c915005f7630949e2ce706055ee3235009b6 (patch)
treed10b246f29198a4085e2923a53e4d8bafff73bcc /test/libapt/cdrom_test.cc
parent39d9e217a22901892647499ee695ba472a111d25 (diff)
Prevent GTest from flooding us with compiler warnings
GTest has a bunch of undefined macros which causes the compiler to spit out warnings for each one on each test file. There isn't much we can do, so we just disable the warning for the testcases. Other warnings like sign-promo and sign-compare we can avoid by being more explicit about our expected integer constants being unsigned. As we are just changing testcases, there is no user visible change which would deserve to be noted in the changelog. Gbp-Dch: Ignore Reported-By: gcc-8
Diffstat (limited to 'test/libapt/cdrom_test.cc')
-rw-r--r--test/libapt/cdrom_test.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/libapt/cdrom_test.cc b/test/libapt/cdrom_test.cc
index c9021e64e..b21492cb7 100644
--- a/test/libapt/cdrom_test.cc
+++ b/test/libapt/cdrom_test.cc
@@ -32,59 +32,59 @@ TEST(CDROMTest,ReduceSourcelist)
List.push_back(" wheezy main");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(1, R.size());
+ ASSERT_EQ(1u, R.size());
EXPECT_EQ(" wheezy main", R[0]);
List.push_back(" wheezy main");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(1, R.size());
+ ASSERT_EQ(1u, R.size());
EXPECT_EQ(" wheezy main", R[0]);
List.push_back(" wheezy contrib");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(1, R.size());
+ ASSERT_EQ(1u, R.size());
EXPECT_EQ(" wheezy contrib main", R[0]);
List.push_back(" wheezy-update contrib");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(2, R.size());
+ ASSERT_EQ(2u, R.size());
EXPECT_EQ(" wheezy contrib main", R[0]);
EXPECT_EQ(" wheezy-update contrib", R[1]);
List.push_back(" wheezy-update contrib");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(2, R.size());
+ ASSERT_EQ(2u, R.size());
EXPECT_EQ(" wheezy contrib main", R[0]);
EXPECT_EQ(" wheezy-update contrib", R[1]);
List.push_back(" wheezy-update non-free");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(2, R.size());
+ ASSERT_EQ(2u, R.size());
EXPECT_EQ(" wheezy contrib main", R[0]);
EXPECT_EQ(" wheezy-update contrib non-free", R[1]);
List.push_back(" wheezy-update main");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(2, R.size());
+ ASSERT_EQ(2u, R.size());
EXPECT_EQ(" wheezy contrib main", R[0]);
EXPECT_EQ(" wheezy-update contrib main non-free", R[1]);
List.push_back(" wheezy non-free");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(2, R.size());
+ ASSERT_EQ(2u, R.size());
EXPECT_EQ(" wheezy contrib main non-free", R[0]);
EXPECT_EQ(" wheezy-update contrib main non-free", R[1]);
List.push_back(" sid main");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(3, R.size());
+ ASSERT_EQ(3u, R.size());
EXPECT_EQ(" sid main", R[0]);
EXPECT_EQ(" wheezy contrib main non-free", R[1]);
EXPECT_EQ(" wheezy-update contrib main non-free", R[2]);
List.push_back(" sid main-reduce");
R = cd.ReduceSourcelist(CD, List);
- ASSERT_EQ(3, R.size());
+ ASSERT_EQ(3u, R.size());
EXPECT_EQ(" sid main main-reduce", R[0]);
EXPECT_EQ(" wheezy contrib main non-free", R[1]);
EXPECT_EQ(" wheezy-update contrib main non-free", R[2]);