|
@@ -5626,10 +5626,10 @@ test_config_compute_max_mem_in_queues(void *data)
|
|
|
|
|
|
#if SIZEOF_VOID_P >= 8
|
|
|
|
|
|
- tt_int_op(compute_real_max_mem_in_queues(0, 0), OP_EQ, GIGABYTE(8));
|
|
|
+ tt_u64_op(compute_real_max_mem_in_queues(0, 0), OP_EQ, GIGABYTE(8));
|
|
|
#else
|
|
|
|
|
|
- tt_int_op(compute_real_max_mem_in_queues(0, 0), OP_EQ, GIGABYTE(1));
|
|
|
+ tt_u64_op(compute_real_max_mem_in_queues(0, 0), OP_EQ, GIGABYTE(1));
|
|
|
#endif
|
|
|
|
|
|
|
|
@@ -5639,7 +5639,7 @@ test_config_compute_max_mem_in_queues(void *data)
|
|
|
total_system_memory_output = GIGABYTE(1);
|
|
|
|
|
|
|
|
|
- tt_int_op(compute_real_max_mem_in_queues(0, 0), OP_EQ,
|
|
|
+ tt_u64_op(compute_real_max_mem_in_queues(0, 0), OP_EQ,
|
|
|
3 * (GIGABYTE(1) / 4));
|
|
|
|
|
|
|
|
@@ -5648,28 +5648,30 @@ test_config_compute_max_mem_in_queues(void *data)
|
|
|
|
|
|
* MaxMemInQueues here, even though we should only have had 0.75 * 256 = 192
|
|
|
* MB available. */
|
|
|
- tt_int_op(compute_real_max_mem_in_queues(0, 0), OP_EQ, MEGABYTE(256));
|
|
|
+ tt_u64_op(compute_real_max_mem_in_queues(0, 0), OP_EQ, MEGABYTE(256));
|
|
|
|
|
|
+#if SIZEOF_SIZE_T > 4
|
|
|
|
|
|
total_system_memory_output = GIGABYTE(8);
|
|
|
|
|
|
|
|
|
- tt_int_op(compute_real_max_mem_in_queues(0, 0), OP_EQ,
|
|
|
+ tt_u64_op(compute_real_max_mem_in_queues(0, 0), OP_EQ,
|
|
|
2 * (GIGABYTE(8) / 5));
|
|
|
|
|
|
|
|
|
total_system_memory_output = GIGABYTE(16);
|
|
|
|
|
|
|
|
|
- tt_int_op(compute_real_max_mem_in_queues(0, 0), OP_EQ,
|
|
|
+ tt_u64_op(compute_real_max_mem_in_queues(0, 0), OP_EQ,
|
|
|
2 * (GIGABYTE(16) / 5));
|
|
|
|
|
|
|
|
|
total_system_memory_output = GIGABYTE(32);
|
|
|
|
|
|
|
|
|
- tt_int_op(compute_real_max_mem_in_queues(0, 0), OP_EQ,
|
|
|
+ tt_u64_op(compute_real_max_mem_in_queues(0, 0), OP_EQ,
|
|
|
MAX_DEFAULT_MEMORY_QUEUE_SIZE);
|
|
|
+#endif
|
|
|
|
|
|
done:
|
|
|
UNMOCK(get_total_system_memory);
|