summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2020-10-02 14:18:06 -0500
committerJoel Sherrill <joel@rtems.org>2020-10-05 16:11:39 -0500
commit232fc52d4c53d15ab6c0867b1c5ec62a19b01d1e (patch)
treebd5e5c87d0183a89083993da463dd40917f466ae /testsuites
parentbsps/shared: Add PSCI-based bspreset implementation (diff)
downloadrtems-232fc52d4c53d15ab6c0867b1c5ec62a19b01d1e.tar.bz2
spmsgq_err01: Use correct max values and fix 64bit
Fix spmsgq_err01 on systems with 64-bit pointers and correct max value mismatches and inaccuracies that are more noticable on 64-bit systems.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/spmsgq_err01/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/sptests/spmsgq_err01/init.c b/testsuites/sptests/spmsgq_err01/init.c
index c68d30da16..cb1a82c0e1 100644
--- a/testsuites/sptests/spmsgq_err01/init.c
+++ b/testsuites/sptests/spmsgq_err01/init.c
@@ -101,7 +101,7 @@ rtems_task Init(
/* not enough memory for messages */
status = rtems_message_queue_create(
Queue_name[ 1 ],
- SIZE_MAX / ( sizeof( uintptr_t ) + sizeof( CORE_message_queue_Buffer ) ),
+ UINT32_MAX / ( sizeof( uintptr_t ) + sizeof( CORE_message_queue_Buffer ) ),
1,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
@@ -116,8 +116,8 @@ rtems_task Init(
/* too large a request for messages */
status = rtems_message_queue_create(
Queue_name[ 1 ],
- INT_MAX,
- INT_MAX,
+ UINT32_MAX,
+ SIZE_MAX - sizeof( uintptr_t ) + 1 - sizeof( CORE_message_queue_Buffer ),
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);