summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-03-03 13:24:42 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-05-18 10:44:18 +0200
commit30c389849d1fecec4b2940b0f1e9101ae3ae04a8 (patch)
tree002bf3ec46f311fb41ad2d6e3fc936aa3bc7a3a5 /testsuites
parentsparc64 BSPs: Hard define configuration required settings (diff)
downloadrtems-30c389849d1fecec4b2940b0f1e9101ae3ae04a8.tar.bz2
libblock: Init deps in rtems_blkdev_create()
Update #3358.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/libtests/block17/init.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/testsuites/libtests/block17/init.c b/testsuites/libtests/block17/init.c
index d916c738d5..3346c7cf17 100644
--- a/testsuites/libtests/block17/init.c
+++ b/testsuites/libtests/block17/init.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2013, 2018 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -17,6 +17,7 @@
#endif
#include <rtems/bdbuf.h>
+#include <rtems/blkdev.h>
#include "tmacros.h"
@@ -24,8 +25,13 @@ const char rtems_test_name[] = "BLOCK 17";
static void test(void)
{
- rtems_status_code sc = rtems_bdbuf_init();
+ rtems_status_code sc;
+
+ sc = rtems_bdbuf_init();
rtems_test_assert(sc == RTEMS_INVALID_NUMBER);
+
+ sc = rtems_blkdev_create(NULL, 0, 0, NULL, NULL);
+ rtems_test_assert(sc == RTEMS_INCORRECT_STATE);
}
static void Init(rtems_task_argument arg)