summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2023-06-09 11:11:58 -0500
committerJoel Sherrill <joel@rtems.org>2023-06-10 11:02:29 -0500
commitea27adaa0d16840e0c98db055451992661806f02 (patch)
tree5eb82ad14db3dfcf8fcafa13ae8447dd2555acaa /testsuites/libtests
parentbsps/xqspipsu: Use device information from the FCT (diff)
downloadrtems-ea27adaa0d16840e0c98db055451992661806f02.tar.bz2
testsuites/flashdev01: Use correct page_size type
The page size ioctl requires an int pointer to retrieve the page size. The test currently uses a size_t which mostly works fine for systems where size_t and int are the same size, but can leave junk data in the upper bits when they differ in size causing an assert in the test to fail in some cases. This updates the variable to the correct type.
Diffstat (limited to 'testsuites/libtests')
-rw-r--r--testsuites/libtests/flashdev01/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/libtests/flashdev01/init.c b/testsuites/libtests/flashdev01/init.c
index 8896ad796c..6ce9709496 100644
--- a/testsuites/libtests/flashdev01/init.c
+++ b/testsuites/libtests/flashdev01/init.c
@@ -57,7 +57,7 @@ static void run_test(void) {
rtems_flashdev_ioctl_page_info pg_info;
rtems_flashdev_region region;
uint32_t jedec;
- size_t page_count;
+ int page_count;
int type;
size_t wb_size;