Skip to content

Commit 421860e

Browse files
[arcane,tests] Ajoute test pour 'platform::getPageSize()'.
1 parent e8b0c69 commit 421860e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2+
//-----------------------------------------------------------------------------
3+
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4+
// See the top-level COPYRIGHT file for details.
5+
// SPDX-License-Identifier: Apache-2.0
6+
//-----------------------------------------------------------------------------
7+
8+
#include <gtest/gtest.h>
9+
10+
#include "arcane/utils/HashTableMap.h"
11+
#include "arcane/utils/PlatformUtils.h"
12+
13+
#include <iostream>
14+
15+
/*---------------------------------------------------------------------------*/
16+
/*---------------------------------------------------------------------------*/
17+
18+
using namespace Arcane;
19+
20+
TEST(TestPlatform, Misc)
21+
{
22+
Int64 page_size = platform::getPageSize();
23+
std::cout << "PageSize=" << page_size << "\n";
24+
ASSERT_TRUE(page_size>0);
25+
}
26+
27+
/*---------------------------------------------------------------------------*/
28+
/*---------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)