#include "xbt.h"
#include "xbt/ex.h"
#include "xbt/xbt_os_time.h"
-#include "internal_config.h"
+#include "src/internal_config.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(parmap_test, "Test for parmap");
for (i = 0; i < len; i++) {
unsigned expected = (1U << num) * (i + 1) - 1;
if (a[i] != expected) {
- XBT_CRITICAL("with %u threads, a[%u]: expected %u, got %u",
- num_workers, i, expected, a[i]);
+ XBT_CRITICAL("with %u threads, a[%u]: expected %u, got %u", num_workers, i, expected, a[i]);
ret = 1;
break;
}
XBT_INFO("Basic testing posix");
status += test_parmap_basic(XBT_PARMAP_POSIX);
XBT_INFO("Basic testing futex");
-#ifdef HAVE_FUTEX_H
+#if HAVE_FUTEX_H
status += test_parmap_basic(XBT_PARMAP_FUTEX);
#endif
XBT_INFO("Basic testing busy wait");
XBT_INFO("Extended testing posix");
status += test_parmap_extended(XBT_PARMAP_POSIX);
XBT_INFO("Extended testing futex");
-#ifdef HAVE_FUTEX_H
+#if HAVE_FUTEX_H
status += test_parmap_extended(XBT_PARMAP_FUTEX);
#endif
XBT_INFO("Extended testing busy wait");