#include <string.h>
#include <unistd.h>
+#include <xbt/ex.hpp>
+
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"this test");
#define BUFFSIZE 204800
XBT_INFO("HeapA allocated");
- int i, size;
+ int i;
+ int size;
for (i = 0; i < TESTSIZE; i++) {
size = size_of_block(i);
pointers[i] = mmalloc(heapA, size);
} catch(xbt_ex& e) {
gotit = true;
}
- if (!gotit)
+ if (not gotit)
xbt_die("FAIL: A double-free went undetected (for size:%d)",size_of_block(i));
}
} catch(xbt_ex& e) {
gotit = true;
}
- if (!gotit)
+ if (not gotit)
xbt_die("FAIL: A double-free went undetected (for size:%d)",size_of_block(i));
}