Arcane  v4.1.1.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
TestPlatform.cc
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#include "arcane/utils/String.h"
13
14#include <iostream>
15
16/*---------------------------------------------------------------------------*/
17/*---------------------------------------------------------------------------*/
18
19using namespace Arcane;
20
21TEST(TestPlatform, Misc)
22{
23 Int64 page_size = platform::getPageSize();
24 std::cout << "PageSize=" << page_size << "\n";
25 ASSERT_TRUE(page_size>0);
26}
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31TEST(TestPlatform, GDBStack)
32{
34 std::cout << "Stack=" << str << "\n";
35}
36
37/*---------------------------------------------------------------------------*/
38/*---------------------------------------------------------------------------*/
39
40TEST(TestPlatform, LLDBStack)
41{
43 std::cout << "Stack=" << str << "\n";
44}
45
46/*---------------------------------------------------------------------------*/
47/*---------------------------------------------------------------------------*/
#define ASSERT_TRUE(condition)
Vérifie que condition est vrai.
Definition Assertion.h:125
Chaîne de caractères unicode.
String getLLDBStack()
Récupère la pile d'appel via lldb.
ARCCORE_BASE_EXPORT Int64 getPageSize()
Taille des pages du système hôte en octets.
String getGDBStack()
Récupère la pile d'appel via gdb.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-