Changeset 71703fe in rtems-libbsd


Ignore:
Timestamp:
Jul 27, 2012, 12:48:22 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
2cbf1af
Parents:
bd6dd6e
Message:

init01: Add init.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/init01/init.c

    rbd6dd6e r71703fe  
    1010#include <freebsd/bsd.h>
    1111
     12/* XXX should these be in a header? */
     13void print_test_name(void);
     14void test_main(void);
     15
    1216/* XXX temporary until in .h file */
    1317void rtems_initialize_interfaces(void);
     
    1721)
    1822{
    19   printf( "\n\n*** LIBFREEBSD INITIALIZATION TEST ***\n" );
     23  print_test_name();
     24
    2025  /*
    2126   *  BSD must support the new "shared IRQ PIC implementation" at this point.
     
    2934  rtems_initialize_interfaces();
    3035
    31   puts( "Sleeping to see what happens" );
    32   sleep( 5 );
     36  test_main();
     37  /* should not return */
    3338
    34   printf( "*** END OF LIBFREEBSD INITIALIZATION TEST ***\n" );
    35   exit( 0 );
     39  printf( "*** Test main returned and should not have ***\n" );
     40
     41  exit( 5 );
    3642}
    3743
Note: See TracChangeset for help on using the changeset viewer.