Changeset 39d7d51 in rtems


Ignore:
Timestamp:
Oct 7, 2012, 3:11:30 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8b65f38
Parents:
c17d0b3
Message:

fstests/fsimfsgeneric01: Avoid global state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsimfsgeneric01/init.c

    rc17d0b3 r39d7d51  
    4747} test_state;
    4848
    49 static test_state global_state = TEST_NEW;
    50 
    5149static int handler_open(
    5250  rtems_libio_t *iop,
     
    264262static void test_imfs_make_generic_node(void)
    265263{
     264  test_state state = TEST_NEW;
    266265  int rv = 0;
    267266  int fd = 0;
     
    275274    S_IFCHR | S_IRWXU | S_IRWXG | S_IRWXO,
    276275    &node_control,
    277     &global_state
     276    &state
    278277  );
    279278  rtems_test_assert(rv == 0);
     
    312311  rtems_test_assert(rv == 0);
    313312
    314   rtems_test_assert(global_state == TEST_DESTROYED);
     313  rtems_test_assert(state == TEST_DESTROYED);
    315314}
    316315
Note: See TracChangeset for help on using the changeset viewer.