[rtems commit] fstests: Use printk() for IMFS configuration tests
Sebastian Huber
sebh at rtems.org
Mon Sep 19 05:53:37 UTC 2016
Module: rtems
Branch: master
Commit: caf406468072bb438b7591a869f00a36a1cb3b3b
Changeset: http://git.rtems.org/rtems/commit/?id=caf406468072bb438b7591a869f00a36a1cb3b3b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Sep 16 14:54:12 2016 +0200
fstests: Use printk() for IMFS configuration tests
This avoids problems with console drivers that require a more complete
IMFS.
---
testsuites/fstests/fsimfsconfig01/init.c | 2 +-
testsuites/fstests/fsimfsconfig03/init.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/testsuites/fstests/fsimfsconfig01/init.c b/testsuites/fstests/fsimfsconfig01/init.c
index dd587fa..0a1cea5 100644
--- a/testsuites/fstests/fsimfsconfig01/init.c
+++ b/testsuites/fstests/fsimfsconfig01/init.c
@@ -16,6 +16,7 @@
#include "config.h"
#endif
+#define TESTS_USE_PRINTK
#include "tmacros.h"
#include <sys/stat.h>
@@ -143,7 +144,6 @@ static void Init(rtems_task_argument arg)
}
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
diff --git a/testsuites/fstests/fsimfsconfig03/init.c b/testsuites/fstests/fsimfsconfig03/init.c
index 7307e74..352fb50 100644
--- a/testsuites/fstests/fsimfsconfig03/init.c
+++ b/testsuites/fstests/fsimfsconfig03/init.c
@@ -16,6 +16,7 @@
#include "config.h"
#endif
+#define TESTS_USE_PRINTK
#include "tmacros.h"
#include <sys/stat.h>
@@ -79,7 +80,7 @@ static void Init(rtems_task_argument arg)
rtems_test_assert(rv == 0);
fd = creat(file, S_IRWXU);
- rtems_test_assert(fd == 3);
+ rtems_test_assert(fd == 0);
rv = close(fd);
rtems_test_assert(rv == 0);
@@ -126,9 +127,8 @@ static void Init(rtems_task_argument arg)
}
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
-#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
+#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 1
#define CONFIGURE_FILESYSTEM_IMFS
More information about the vc
mailing list