Fix broken unit tests
Putting minijail in aosp was a great idea. They have much better testing and
continuous integration than chrome os.
Bug: None
Test: unit tests
Change-Id: Ib6f845b33860aa65b1b536ee4afc85d4f826898f
Signed-off-by: Chirantan Ekbote <[email protected]>
diff --git a/libminijail_unittest.cc b/libminijail_unittest.cc
index f4fc25c..d5ff6a8 100644
--- a/libminijail_unittest.cc
+++ b/libminijail_unittest.cc
@@ -310,16 +310,17 @@
ASSERT_EQ(-ERANGE, parse_size(&size, "16E"));
ASSERT_EQ(-ERANGE, parse_size(&size, "19E"));
+ ASSERT_EQ(-EINVAL, parse_size(&size, "7GTPE"));
#elif __WORDSIZE == 32
ASSERT_EQ(-ERANGE, parse_size(&size, "5G"));
ASSERT_EQ(-ERANGE, parse_size(&size, "9G"));
ASSERT_EQ(-ERANGE, parse_size(&size, "9E"));
+ ASSERT_EQ(-ERANGE, parse_size(&size, "7GTPE"));
#endif
ASSERT_EQ(-EINVAL, parse_size(&size, ""));
ASSERT_EQ(-EINVAL, parse_size(&size, "14u"));
ASSERT_EQ(-EINVAL, parse_size(&size, "14.2G"));
- ASSERT_EQ(-EINVAL, parse_size(&size, "7GTPE"));
ASSERT_EQ(-EINVAL, parse_size(&size, "-1G"));
ASSERT_EQ(-EINVAL, parse_size(&size, "; /bin/rm -- "));
}