forked from Imagelibrary/rtems
fstests: Use printk() for IMFS configuration tests
This avoids problems with console drivers that require a more complete IMFS.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user