source: rtems/testsuites/sptests/spfifo01/init.c @ 8b4cb7b

4.115
Last change on this file since 8b4cb7b was dd4df85, checked in by Sebastian Huber <sebastian.huber@…>, on 06/08/10 at 14:06:42

2010-06-08 Sebastian Huber <Sebastian.Huber@…>

  • spfifo01/init.c, spfifo01/spfifo01.scn: Update for IMFS API changes.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2010.
3 *  On-Line Applications Research Corporation (OAR).
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.