Changeset ce8363d3 in rtems


Ignore:
Timestamp:
Dec 11, 2013, 9:23:44 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
bde2237
Parents:
98e5c95
Message:

sptests/spfifo01: Add test case for mknod()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spfifo01/init.c

    r98e5c95 rce8363d3  
    2727static void test_main(void)
    2828{
    29   int status = -1;
    30   int fd;
    31   char buf [1];
    32   ssize_t n;
     29  mode_t rwx = S_IRWXU | S_IRWXG | S_IRWXO;
     30  int status;
    3331
    3432  puts("\n\n*** FIFO / PIPE OPEN TEST - 1 ***");
     
    4139
    4240  errno = 0;
    43   status = mkfifo(FIFO_PATH, 0777);
     41  status = mkfifo(FIFO_PATH, rwx);
     42  rtems_test_assert(status == -1);
     43  rtems_test_assert(errno == ENOSYS);
     44
     45  errno = 0;
     46  status = mknod(FIFO_PATH, S_IFIFO | rwx, 0);
    4447  rtems_test_assert(status == -1);
    4548  rtems_test_assert(errno == ENOSYS);
Note: See TracChangeset for help on using the changeset viewer.