source: rtems/testsuites/fstests/support/fstest_support.c @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2011.
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
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#include <stdio.h>
15#include <errno.h>
16#include <fcntl.h>
17#include <string.h>
18#include <unistd.h>
19#include <stdlib.h> /* exit */
20#include <sys/stat.h>
21#include <sys/types.h>
22
23#include "rtems.h"
24
25#include "fstest_support.h"
26#include "fs_config.h"
27
28#include "fstest.h"
29#include "pmacros.h"
30
31/* Break out of a chroot() environment in C */
32static void break_out_of_chroot(void)
33{
34  chroot("/");
35}
36
37/*
38 *  Main entry point of every filesystem test
39 */
40
41rtems_task Init(
42    rtems_task_argument ignored)
43{
44  int rc=0;
45  puts( "\n\n*** FILE SYSTEM TEST ( " FILESYSTEM " ) ***" );
46
47  puts( "Initializing filesystem " FILESYSTEM );
48  test_initialize_filesystem();
49
50  rc=chroot(BASE_FOR_TEST);
51  rtems_test_assert(rc==0);
52
53  test();
54
55  break_out_of_chroot();
56
57  puts( "\n\nShutting down filesystem " FILESYSTEM );
58  test_shutdown_filesystem();
59
60  puts( "*** END OF FILE SYSTEM TEST ( " FILESYSTEM " ) ***" );
61  rtems_test_exit(0);
62}
Note: See TracBrowser for help on using the repository browser.