A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sonar smells.
[simgrid.git]
/
teshsuite
/
xbt
/
mmalloc
/
mmalloc_test.cpp
diff --git
a/teshsuite/xbt/mmalloc/mmalloc_test.cpp
b/teshsuite/xbt/mmalloc/mmalloc_test.cpp
index
2d50a4e
..
fd9e809
100644
(file)
--- a/
teshsuite/xbt/mmalloc/mmalloc_test.cpp
+++ b/
teshsuite/xbt/mmalloc/mmalloc_test.cpp
@@
-7,6
+7,7
@@
#include "xbt.h"
#include "xbt/mmalloc.h"
#include "xbt.h"
#include "xbt/mmalloc.h"
+#include <array>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <cstdio>
#include <cstdlib>
@@
-14,6
+15,7
@@
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <vector>
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"this test");
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"this test");
@@
-32,7
+34,7
@@
static void check_block(const unsigned char* p, unsigned char b, int n)
int main(int argc, char**argv)
{
xbt_mheap_t heapA = nullptr;
int main(int argc, char**argv)
{
xbt_mheap_t heapA = nullptr;
-
void *pointers[TESTSIZE]
;
+
std::array<void*, TESTSIZE> pointers
;
xbt_init(&argc,argv);
XBT_INFO("Allocating a new heap");
xbt_init(&argc,argv);
XBT_INFO("Allocating a new heap");