summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/msync.cc
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2019-04-29 11:32:48 -0700
committerShentubot <shentubot@google.com>2019-04-29 11:34:16 -0700
commitac8fca1ef44ee5ceb1fa454d52f41178a4d66f79 (patch)
tree7f8f9582ccb73759eedf753f6d17f289b47847ac /test/syscalls/linux/msync.cc
parent2df64cd6d2c835ce5b37a8b9111d24ad382b5d3d (diff)
Appease googletest deprecation
PiperOrigin-RevId: 245788366 Change-Id: I17bbecf8493132dbe95564c34c45b838194bfabb
Diffstat (limited to 'test/syscalls/linux/msync.cc')
-rw-r--r--test/syscalls/linux/msync.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/syscalls/linux/msync.cc b/test/syscalls/linux/msync.cc
index 72d90dc78..5afbfce72 100644
--- a/test/syscalls/linux/msync.cc
+++ b/test/syscalls/linux/msync.cc
@@ -93,9 +93,9 @@ TEST_P(MsyncNoMappingTest, UnmappedAddressWithNonzeroLengthFails) {
SyscallFailsWithErrno(ENOMEM));
}
-INSTANTIATE_TEST_CASE_P(All, MsyncNoMappingTest,
- ::testing::Combine(::testing::ValuesIn(kMsyncFlags),
- ::testing::Values(NoMappings)));
+INSTANTIATE_TEST_SUITE_P(All, MsyncNoMappingTest,
+ ::testing::Combine(::testing::ValuesIn(kMsyncFlags),
+ ::testing::Values(NoMappings)));
// "Fixture" for msync tests that are not parameterized by msync flags, but do
// create mappings.
@@ -107,7 +107,7 @@ TEST_P(MsyncNoFlagsTest, BothSyncAndAsyncFails) {
SyscallFailsWithErrno(EINVAL));
}
-INSTANTIATE_TEST_CASE_P(
+INSTANTIATE_TEST_SUITE_P(
All, MsyncNoFlagsTest,
::testing::Combine(::testing::Values(0), // ignored
::testing::ValuesIn(SyncableMappings())));
@@ -142,7 +142,7 @@ TEST_P(MsyncFullParamTest, InvalidateUnlockedSucceeds) {
// The test for MS_INVALIDATE on mlocked pages is in mlock.cc since it requires
// probing for mlock support.
-INSTANTIATE_TEST_CASE_P(
+INSTANTIATE_TEST_SUITE_P(
All, MsyncFullParamTest,
::testing::Combine(::testing::ValuesIn(kMsyncFlags),
::testing::ValuesIn(SyncableMappings())));