diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-12-08 17:52:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-12-08 17:52:49 +0000 |
commit | 500fcd5c880e3cd281dced795c88407e3e67b2af (patch) | |
tree | 33c03a68fc25214ea4de91a0757aaeaa05c31101 /testsuites/libtests/block07/init.c | |
parent | 2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-500fcd5c880e3cd281dced795c88407e3e67b2af.tar.bz2 |
2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* block01/init.c, block02/init.c, block03/init.c, block04/init.c,
block05/init.c, block07/init.c, bspcmdline01/init.c,
stringto01/init.c, stringto01/stringto_test_template.h,
termios01/init.c, termios01/termios_testdriver.c, termios02/init.c:
Use rtems_test_assert() consistently instead of system assert().
rtems_test_assert() is designed to integrate into the RTEMS test
suite infrastructure.
Diffstat (limited to 'testsuites/libtests/block07/init.c')
-rw-r--r-- | testsuites/libtests/block07/init.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/testsuites/libtests/block07/init.c b/testsuites/libtests/block07/init.c index b232120271..bc25e03c88 100644 --- a/testsuites/libtests/block07/init.c +++ b/testsuites/libtests/block07/init.c @@ -23,14 +23,14 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> -#include <assert.h> +#include "tmacros.h" #include <rtems.h> #include <rtems/ramdisk.h> #include <rtems/bdbuf.h> #include <rtems/diskdevs.h> -#define ASSERT_SC(sc) assert((sc) == RTEMS_SUCCESSFUL) +#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL) #define PRIORITY_INIT 1 @@ -64,13 +64,13 @@ static void change_block_size(void) uint32_t new_block_size = BLOCK_SIZE_B; int fd = open("/dev/rda", O_RDWR); - assert(fd >= 0); + rtems_test_assert(fd >= 0); rv = ioctl(fd, RTEMS_BLKIO_SETBLKSIZE, &new_block_size); - assert(rv == 0); + rtems_test_assert(rv == 0); rv = close(fd); - assert(rv == 0); + rtems_test_assert(rv == 0); } static void task_low(rtems_task_argument arg) @@ -85,7 +85,7 @@ static void task_low(rtems_task_argument arg) printk("L: access: 0\n"); - assert(bd->group->bds_per_group == 2); + rtems_test_assert(bd->group->bds_per_group == 2); printk("L: release: 0\n"); @@ -111,7 +111,7 @@ static void task_mid(rtems_task_argument arg) printk("M: access: 0\n"); - assert(bd->group->bds_per_group == 1); + rtems_test_assert(bd->group->bds_per_group == 1); printk("M: release: 0\n"); @@ -137,7 +137,7 @@ static void task_high(rtems_task_argument arg) printk("H: access: 0\n"); - assert(bd->group->bds_per_group == 1); + rtems_test_assert(bd->group->bds_per_group == 1); printk("H: release: 0\n"); |