Files
rtems/testsuites/sptests/spfifo01/init.c
Joel Sherrill 287febb503 2010-06-24 Bharath Suri <bharath.s.jois@gmail.com>
* Makefile.am, configure.ac: Removed some fifo tests.
	* spfifo01/Makefile.am, spfifo01/init.c: Minor changes to avoid
	excessive new lines in the output.

	spfifo02/Makefile.am, spfifo02/init.c, spfifo02/spfifo02.doc,
	spfifo02/spfifo02.scn, spfifo03/Makefile.am: Merge from spfifo08.
	Also added a few more cases, mostly from spfifo04/init.c.
	* spfifo03/init.c, spfifo03/spfifo03.doc, spfifo03/spfifo03.scn:
	Previously was spfifo06. Configure parameter for pipes is used now.
	* spfifo04/.cvsignore, spfifo04/Makefile.am, spfifo04/init.c,
	spfifo04/spfifo04.doc, spfifo04/spfifo04.scn, spfifo08/.cvsignore,
	spfifo08/Makefile.am, spfifo08/init.c, spfifo08/spfifo08.doc,
	spfifo08/spfifo08.scn: Removed.
2010-06-24 19:46:40 +00:00

54 lines
1.1 KiB
C

/*
* COPYRIGHT (c) 2010
* Bharath Suri<bharath.s.jois@gmail.com>.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#include <sys/stat.h>
#include <stdio.h>
#include "tmacros.h"
#define FIFO_PATH "/fifo01"
static void test_main(void)
{
int status = -1;
puts("\n\n*** FIFO / PIPE OPEN TEST - 1 ***");
puts(
"\nConfiguration: Pipes disabled.\n"
"Creating named fifo '" FIFO_PATH "'.\n"
"Must result in failure since pipes are disabled in the configuration."
);
status = mkfifo(FIFO_PATH, 0777);
rtems_test_assert(status == -1);
puts("*** END OF FIFO / PIPE OPEN TEST - 1 ***");
}
rtems_task Init(rtems_task_argument not_used)
{
test_main();
rtems_test_exit(0);
}
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
#define CONFIGURE_MAXIMUM_TASKS 1
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT
#include <rtems/confdefs.h>