Ticket #1617: testsuites-changes

File testsuites-changes, 6.2 KB (added by Bharath Suri, on 07/15/10 at 06:37:36)

Patch @ testsuites/

Line 
1Index: libtests/malloctest/init.c
2===================================================================
3RCS file: /usr1/CVS/rtems/testsuites/libtests/malloctest/init.c,v
4retrieving revision 1.40
5diff -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
17Index: psxtests/psxfile01/psxfile01.scn
18===================================================================
19RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxfile01/psxfile01.scn,v
20retrieving revision 1.11
21diff -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 
33Index: psxtests/psxfile01/test.c
34===================================================================
35RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxfile01/test.c,v
36retrieving revision 1.26
37diff -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   /*
55Index: psxtests/psxstat/psxstat.scn
56===================================================================
57RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxstat/psxstat.scn,v
58retrieving revision 1.11
59diff -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 ***
71Index: psxtests/psxstat/test.c
72===================================================================
73RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxstat/test.c,v
74retrieving revision 1.28
75diff -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 }
95Index: psxtests/psxtime/psxtime.scn
96===================================================================
97RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxtime/psxtime.scn,v
98retrieving revision 1.7
99diff -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
119Index: psxtests/psxtime/test.c
120===================================================================
121RCS file: /usr1/CVS/rtems/testsuites/psxtests/psxtime/test.c,v
122retrieving revision 1.17
123diff -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   /*
138Index: sptests/Makefile.am
139===================================================================
140RCS file: /usr1/CVS/rtems/testsuites/sptests/Makefile.am,v
141retrieving revision 1.99
142diff -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
154Index: sptests/configure.ac
155===================================================================
156RCS file: /usr1/CVS/rtems/testsuites/sptests/configure.ac,v
157retrieving revision 1.104
158diff -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