source: rtems/c/src/tests/psxtests/psxfile02/test.c @ 0895bdb

4.104.114.84.95
Last change on this file since 0895bdb was 0895bdb, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/98 at 18:57:48

Added tests in support of the file system infrastructure.

  • Property mode set to 100644
File size: 797 bytes
Line 
1/*
2 *  Simple test program to exercise some of the basic functionality of
3 *  POSIX Files and Directories Support.
4 *
5 *  This test assumes that the file system is initialized with the
6 *  following directory structure:
7 *
8 *  XXXX fill this in.
9 *    /
10 *    /dev
11 *    /dev/XXX   [where XXX includes at least console]
12 *
13 *
14 */
15
16#include <stdio.h>
17
18#include <sys/types.h>
19#include <sys/stat.h>
20#include <fcntl.h>
21#include <unistd.h>
22#include <errno.h>
23#include <string.h>
24#include <ctype.h>
25
26#include <assert.h>
27
28/*
29 *  Main entry point of the test
30 */
31
32#if defined(__rtems__)
33int test_main(void)
34#else
35int main(
36  int argc,
37  char **argv
38)
39#endif
40{
41  printf( "\n\n*** FILE TEST 2 ***\n" );
42
43  /*
44   *  XXX test code goes here
45   */
46
47  printf( "*** END OF FILE TEST 2 ***\n" );
48  exit( 0 );
49}
Note: See TracBrowser for help on using the repository browser.