source: rtems/testsuites/sptests/spfifo01/init.c @ e630235

4.115
Last change on this file since e630235 was 205a21e, checked in by Jennifer Averett <Jennifer.Averett@…>, on 06/10/10 at 14:44:27

2010-06-10 Jennifer Averett <Jennifer.Averett@…>

  • spfifo01/init.c, spfifo01/spfifo01.doc, spfifo02/init.c, spfifo02/spfifo02.doc, spfifo03/init.c, spfifo03/spfifo03.doc, spfifo04/init.c, spfifo04/spfifo04.doc: Modified copyright.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  COPYRIGHT (c) 2010
3 *  Bharath Suri<bharath.s.jois@gmail.com>.
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#include <sys/stat.h>
13#include <stdio.h>
14
15#include "tmacros.h"
16
17#define FIFO_PATH "/fifo01"
18
19static void test_main(void)
20{
21  int status = -1;
22
23  puts("\n\n*** FIFO / PIPE OPEN TEST - 1 ***");
24
25  puts(
26    "Configuration: Pipes disabled.\n"
27    "Creating named fifo '" FIFO_PATH "'.\n"
28    "Must result in failure since pipes are disabled in the configuration."
29  );
30  status = mkfifo(FIFO_PATH, 0777);
31  rtems_test_assert(status == -1);
32
33  puts("*** END OF FIFO / PIPE OPEN TEST - 1 ***");
34}
35
36rtems_task Init(rtems_task_argument not_used)
37{
38  test_main();
39  rtems_test_exit(0);
40}
41
42#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
43#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
44
45#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
46
47#define CONFIGURE_MAXIMUM_TASKS 1
48
49#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
50
51#define CONFIGURE_INIT
52
53#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.