1 | Index: libtests/malloctest/init.c |
---|
2 | =================================================================== |
---|
3 | RCS file: /usr1/CVS/rtems/testsuites/libtests/malloctest/init.c,v |
---|
4 | retrieving revision 1.40 |
---|
5 | diff -u -r1.40 init.c |
---|
6 | --- libtests/malloctest/init.c 28 Jun 2010 17:05:25 -0000 1.40 |
---|
7 | +++ libtests/malloctest/init.c 15 Jul 2010 06:53:47 -0000 |
---|
8 | @@ -112,6 +112,8 @@ |
---|
9 | * Realloc with a bad pointer to force a point |
---|
10 | */ |
---|
11 | p4 = realloc( test_realloc, 32 ); |
---|
12 | + |
---|
13 | + p4 = _realloc_r( NULL, NULL, 1 ); |
---|
14 | } |
---|
15 | |
---|
16 | #define TEST_HEAP_SIZE 2048 |
---|
17 | Index: psxtests/psxfile01/psxfile01.scn |
---|
18 | =================================================================== |
---|
19 | RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxfile01/psxfile01.scn,v |
---|
20 | retrieving revision 1.11 |
---|
21 | diff -u -r1.11 psxfile01.scn |
---|
22 | --- psxtests/psxfile01/psxfile01.scn 8 Jul 2010 19:37:00 -0000 1.11 |
---|
23 | +++ psxtests/psxfile01/psxfile01.scn 15 Jul 2010 06:53:48 -0000 |
---|
24 | @@ -49,6 +49,8 @@ |
---|
25 | create /tmp/john |
---|
26 | tcdrain /tmp/john |
---|
27 | Attempt to create a file, open in read-only mode and truncate it |
---|
28 | +Exercise the reentrant version _link_r -- Expect EFAULT |
---|
29 | +Unlink /tmp/bha using the reentrant version -- OK |
---|
30 | mknod /tmp/joel |
---|
31 | (0)the first write!!! |
---|
32 | |
---|
33 | Index: psxtests/psxfile01/test.c |
---|
34 | =================================================================== |
---|
35 | RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxfile01/test.c,v |
---|
36 | retrieving revision 1.26 |
---|
37 | diff -u -r1.26 test.c |
---|
38 | --- psxtests/psxfile01/test.c 8 Jul 2010 19:37:01 -0000 1.26 |
---|
39 | +++ psxtests/psxfile01/test.c 15 Jul 2010 06:53:48 -0000 |
---|
40 | @@ -338,7 +338,13 @@ |
---|
41 | rtems_test_assert( fd == -1 ); |
---|
42 | rtems_test_assert( errno == EINVAL ); |
---|
43 | |
---|
44 | - status = unlink( "/tmp/bha" ); |
---|
45 | + puts( "Exercise the reentrant version _link_r -- Expect EFAULT" ); |
---|
46 | + status = _link_r( NULL, NULL, NULL ); |
---|
47 | + rtems_test_assert( status == -1 ); |
---|
48 | + rtems_test_assert( errno == EFAULT ); |
---|
49 | + |
---|
50 | + puts( "Unlink /tmp/bha using the reentrant version -- OK" ); |
---|
51 | + status = _unlink_r( NULL, "/tmp/bha" ); |
---|
52 | rtems_test_assert( status == 0 ); |
---|
53 | |
---|
54 | /* |
---|
55 | Index: psxtests/psxstat/psxstat.scn |
---|
56 | =================================================================== |
---|
57 | RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxstat/psxstat.scn,v |
---|
58 | retrieving revision 1.11 |
---|
59 | diff -u -r1.11 psxstat.scn |
---|
60 | --- psxtests/psxstat/psxstat.scn 13 Jul 2010 21:13:12 -0000 1.11 |
---|
61 | +++ psxtests/psxstat/psxstat.scn 15 Jul 2010 06:53:49 -0000 |
---|
62 | @@ -1708,6 +1708,8 @@ |
---|
63 | create /tmp -- OK |
---|
64 | statvfs, with valid path - expect ENOTSUP |
---|
65 | statvfs tested! |
---|
66 | +Exercise the reentrant version - _stat_r - expect EFAULT |
---|
67 | +Exercise the reentrant version - _lstat_r - expect EFAULT |
---|
68 | |
---|
69 | |
---|
70 | *** END OF STAT TEST 01 *** |
---|
71 | Index: psxtests/psxstat/test.c |
---|
72 | =================================================================== |
---|
73 | RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxstat/test.c,v |
---|
74 | retrieving revision 1.28 |
---|
75 | diff -u -r1.28 test.c |
---|
76 | --- psxtests/psxstat/test.c 13 Jul 2010 21:13:13 -0000 1.28 |
---|
77 | +++ psxtests/psxstat/test.c 15 Jul 2010 06:53:50 -0000 |
---|
78 | @@ -927,6 +927,16 @@ |
---|
79 | |
---|
80 | test_statvfs(); |
---|
81 | |
---|
82 | + puts( "Exercise the reentrant version - _stat_r - expect EFAULT" ); |
---|
83 | + status = _stat_r( NULL, NULL, NULL ); |
---|
84 | + rtems_test_assert( status == -1 ); |
---|
85 | + rtems_test_assert( errno == EFAULT ); |
---|
86 | + |
---|
87 | + puts( "Exercise the reentrant version - _lstat_r - expect EFAULT" ); |
---|
88 | + status = _lstat_r( NULL, NULL, NULL ); |
---|
89 | + rtems_test_assert( status == -1 ); |
---|
90 | + rtems_test_assert( errno == EFAULT ); |
---|
91 | + |
---|
92 | puts( "\n\n*** END OF STAT TEST 01 ***" ); |
---|
93 | rtems_test_exit(0); |
---|
94 | } |
---|
95 | Index: psxtests/psxtime/psxtime.scn |
---|
96 | =================================================================== |
---|
97 | RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxtime/psxtime.scn,v |
---|
98 | retrieving revision 1.7 |
---|
99 | diff -u -r1.7 psxtime.scn |
---|
100 | --- psxtests/psxtime/psxtime.scn 28 Jun 2010 21:00:15 -0000 1.7 |
---|
101 | +++ psxtests/psxtime/psxtime.scn 15 Jul 2010 06:53:50 -0000 |
---|
102 | @@ -1,5 +1,7 @@ |
---|
103 | + |
---|
104 | *** POSIX TIME OF DAY TEST *** |
---|
105 | gettimeofday( NULL, NULL ) - EFAULT |
---|
106 | +_gettimeofday( NULL, NULL ) - EFAULT |
---|
107 | rtems_clock_set 12:45:00 01/01/1988 |
---|
108 | adjtime - NULL delta - EINVAL |
---|
109 | adjtime - delta out of range - EINVAL |
---|
110 | @@ -9,7 +11,7 @@ |
---|
111 | adjtime - delta of one second forward |
---|
112 | adjtime - delta of almost two seconds forward |
---|
113 | adjtime - delta of almost one second forward which bumps second |
---|
114 | -rtems_clock_get_tod 12:45:04 01/01/1988 |
---|
115 | +rtems_clock_get_tod 12:45:05 01/01/1988 |
---|
116 | rtems_clock_set 12:45:00 01/01/1988 |
---|
117 | rtems_clock_get_tod 12:45:00 01/01/1988 |
---|
118 | gettimeofday: Fri Jan 1 12:45:00 1988 |
---|
119 | Index: psxtests/psxtime/test.c |
---|
120 | =================================================================== |
---|
121 | RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxtime/test.c,v |
---|
122 | retrieving revision 1.17 |
---|
123 | diff -u -r1.17 test.c |
---|
124 | --- psxtests/psxtime/test.c 28 Jun 2010 21:00:15 -0000 1.17 |
---|
125 | +++ psxtests/psxtime/test.c 15 Jul 2010 06:53:50 -0000 |
---|
126 | @@ -202,6 +202,11 @@ |
---|
127 | rtems_test_assert( sc == -1 ); |
---|
128 | rtems_test_assert( errno == EFAULT ); |
---|
129 | |
---|
130 | + puts( "_gettimeofday( NULL, NULL ) - EFAULT" ); |
---|
131 | + sc = _gettimeofday( NULL, NULL ); |
---|
132 | + rtems_test_assert( sc == -1 ); |
---|
133 | + rtems_test_assert( errno == EFAULT ); |
---|
134 | + |
---|
135 | test_adjtime(); |
---|
136 | |
---|
137 | /* |
---|
138 | Index: sptests/Makefile.am |
---|
139 | =================================================================== |
---|
140 | RCS file: /usr1/CVS/rtems/testsuites/sptests/Makefile.am,v |
---|
141 | retrieving revision 1.99 |
---|
142 | diff -u -r1.99 Makefile.am |
---|
143 | --- sptests/Makefile.am 8 Jul 2010 19:39:11 -0000 1.99 |
---|
144 | +++ sptests/Makefile.am 15 Jul 2010 06:53:50 -0000 |
---|
145 | @@ -27,7 +27,7 @@ |
---|
146 | spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \ |
---|
147 | spintrcritical09 spintrcritical10 spintrcritical11 spintrcritical12 \ |
---|
148 | spintrcritical13 spintrcritical14 spintrcritical15 spintrcritical16 \ |
---|
149 | - spintrcritical17 spmkdir |
---|
150 | + spintrcritical17 spmkdir spmountmgr01 |
---|
151 | |
---|
152 | DIST_SUBDIRS = $(SUBDIRS) spfatal_support spintrcritical_support |
---|
153 | EXTRA_DIST = spfatal_support/init.c spfatal_support/system.h |
---|
154 | Index: sptests/configure.ac |
---|
155 | =================================================================== |
---|
156 | RCS file: /usr1/CVS/rtems/testsuites/sptests/configure.ac,v |
---|
157 | retrieving revision 1.104 |
---|
158 | diff -u -r1.104 configure.ac |
---|
159 | --- sptests/configure.ac 8 Jul 2010 19:39:12 -0000 1.104 |
---|
160 | +++ sptests/configure.ac 15 Jul 2010 06:53:50 -0000 |
---|
161 | @@ -147,9 +147,11 @@ |
---|
162 | spintrcritical16/Makefile |
---|
163 | spintrcritical17/Makefile |
---|
164 | spmkdir/Makefile |
---|
165 | +spmountmgr01/Makefile |
---|
166 | spnotepad01/Makefile |
---|
167 | spobjgetnext/Makefile |
---|
168 | spprintk/Makefile |
---|
169 | spsize/Makefile |
---|
170 | spstkalloc/Makefile |
---|
171 | spthreadq01/Makefile |
---|