summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTreehugger Robot2018-04-18 19:52:48 -0500
committerGerrit Code Review2018-04-18 19:52:48 -0500
commit1dd79d71f5adb520fe3ebfb4c6d0bb559307cdba (patch)
treed259735cd86e331c1ddc2e581bb3c5524158195e /test
parent10d862283d70ab48941b2dbd1226f139480ed27c (diff)
parent64322ea4cd4044657387c24cc0f5572a2e325ed7 (diff)
downloadplatform-system-libvintf-1dd79d71f5adb520fe3ebfb4c6d0bb559307cdba.tar.gz
platform-system-libvintf-1dd79d71f5adb520fe3ebfb4c6d0bb559307cdba.tar.xz
platform-system-libvintf-1dd79d71f5adb520fe3ebfb4c6d0bb559307cdba.zip
Merge "Compat if POLICYVERS <= security_policyvers()"
Diffstat (limited to 'test')
-rw-r--r--test/LibVintfTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/LibVintfTest.cpp b/test/LibVintfTest.cpp
index 4c7aa23..5fbd1b7 100644
--- a/test/LibVintfTest.cpp
+++ b/test/LibVintfTest.cpp
@@ -827,11 +827,11 @@ TEST_F(LibVintfTest, RuntimeInfo) {
827 MatrixKernel kernel(KernelVersion{3, 18, 22}, KernelConfigs(configs)); 827 MatrixKernel kernel(KernelVersion{3, 18, 22}, KernelConfigs(configs));
828 CompatibilityMatrix cm = testMatrix(std::move(kernel)); 828 CompatibilityMatrix cm = testMatrix(std::move(kernel));
829 set(cm, Sepolicy{22, {{25, 0}}}); 829 set(cm, Sepolicy{22, {{25, 0}}});
830 EXPECT_FALSE(ki.checkCompatibility(cm, &error)) 830 EXPECT_TRUE(ki.checkCompatibility(cm, &error)) << error;
831 << "kernel-sepolicy-version shouldn't match";
832 set(cm, Sepolicy{40, {{25, 0}}}); 831 set(cm, Sepolicy{40, {{25, 0}}});
833 EXPECT_FALSE(ki.checkCompatibility(cm, &error)) 832 EXPECT_FALSE(ki.checkCompatibility(cm, &error))
834 << "kernel-sepolicy-version shouldn't match"; 833 << "kernel-sepolicy-version shouldn't match";
834 EXPECT_IN("kernelSepolicyVersion = 30 but required >= 40", error);
835 } 835 }
836 836
837 { 837 {