Changeset d802489 in rtems
- Timestamp:
- 08/02/02 00:53:21 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 6b9d16f
- Parents:
- 116845e8
- Files:
-
- 84 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/psxtests/ChangeLog
r116845e8 rd802489 1 2002-08-01 Joel Sherrill <joel@OARcorp.com> 2 3 * Per PR47 add support for buffered test output. This involved 4 adding defines to redirect output to a buffer and dump it when 5 full, at "test pause", and at exit. To avoid problems when redefining 6 exit(), all tests were modified to call rtems_test_exit(). 7 Some tests, notable psxtests, had to be modified to include 8 the standard test macro .h file (pmacros.h or tmacros.h) to 9 enable this support. 10 * include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c, 11 psx03/init.c, psx04/init.c, psx05/init.c, psx06/init.c, psx07/init.c, 12 psx08/task3.c, psx09/init.c, psx10/init.c, psx11/init.c, 13 psx12/init.c, psx13/Makefile.am, psx13/main.c, psx13/test.c, 14 psxcancel/init.c, psxchroot01/Makefile.am, psxchroot01/main.c, 15 psxchroot01/test.c, psxfile01/Makefile.am, psxfile01/main.c, 16 psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c, 17 psxfile01/test_write.c, psxmount/Makefile.am, psxmount/main.c, 18 psxmount/test.c, psxmsgq01/init.c, psxreaddir/Makefile.am, 19 psxreaddir/main.c, psxreaddir/test.c, psxsem01/init.c, 20 psxstat/Makefile.am, psxstat/main.c, psxstat/test.c, psxtime/main.c, 21 psxtime/test.c, psxtimer/psxtimer.c: Modified. 22 1 23 2002-07-05 Joel Sherrill <joel@OARcorp.com> 2 24 -
c/src/tests/psxtests/include/pmacros.h
r116845e8 rd802489 13 13 #include <time.h> 14 14 #include <unistd.h> 15 16 #include <buffer_test_io.h> 15 17 16 18 /* … … 68 70 #define print_current_time(s1, s2) \ 69 71 do { \ 70 char _ buffer[32]; \72 char _time_buffer[32]; \ 71 73 int _status; \ 72 74 struct timespec _tv; \ … … 75 77 assert( !_status ); \ 76 78 \ 77 (void) ctime_r( &_tv.tv_sec, _ buffer ); \78 _ buffer[ strlen(_buffer ) - 1 ] = 0; \79 printf( "%s%s%s\n", s1, _ buffer, s2 ); \79 (void) ctime_r( &_tv.tv_sec, _time_buffer ); \ 80 _time_buffer[ strlen( _time_buffer ) - 1 ] = 0; \ 81 printf( "%s%s%s\n", s1, _time_buffer, s2 ); \ 80 82 fflush(stdout); \ 81 83 } while ( 0 ) -
c/src/tests/psxtests/psx01/task.c
r116845e8 rd802489 88 88 89 89 puts( "*** END OF POSIX TEST 1 ***" ); 90 exit( 0 );90 rtems_test_exit( 0 ); 91 91 92 92 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx02/init.c
r116845e8 rd802489 140 140 141 141 puts( "*** END OF POSIX TEST 2 ***" ); 142 exit( 0 );142 rtems_test_exit( 0 ); 143 143 144 144 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx02/task.c
r116845e8 rd802489 39 39 } 40 40 puts( "*** END OF POSIX TEST 2 ***" ); 41 exit( 0 );41 rtems_test_exit( 0 ); 42 42 43 43 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx03/init.c
r116845e8 rd802489 198 198 199 199 puts( "*** END OF POSIX TEST 3 ***" ); 200 exit( 0 );200 rtems_test_exit( 0 ); 201 201 202 202 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx04/init.c
r116845e8 rd802489 552 552 553 553 puts( "*** END OF POSIX TEST 4 ***" ); 554 exit( 0 );554 rtems_test_exit( 0 ); 555 555 556 556 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx05/init.c
r116845e8 rd802489 578 578 579 579 puts( "*** END OF POSIX TEST 5 ***" ); 580 exit( 0 );580 rtems_test_exit( 0 ); 581 581 582 582 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx06/init.c
r116845e8 rd802489 115 115 116 116 puts( "*** END OF POSIX TEST 6 ***" ); 117 exit( 0 );117 rtems_test_exit( 0 ); 118 118 119 119 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx07/init.c
r116845e8 rd802489 488 488 489 489 puts( "*** END OF POSIX TEST 7 ***" ); 490 exit( 0 );490 rtems_test_exit( 0 ); 491 491 492 492 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx08/task3.c
r116845e8 rd802489 46 46 47 47 puts( "*** END OF POSIX TEST 8 ***" ); 48 exit( 0 );48 rtems_test_exit( 0 ); 49 49 50 50 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx09/init.c
r116845e8 rd802489 220 220 221 221 puts( "*** END OF POSIX TEST 9 ***" ); 222 exit( 0 );222 rtems_test_exit( 0 ); 223 223 224 224 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx10/init.c
r116845e8 rd802489 306 306 307 307 puts( "*** END OF POSIX TEST 10 ***" ); 308 exit( 0 );308 rtems_test_exit( 0 ); 309 309 310 310 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx11/init.c
r116845e8 rd802489 102 102 103 103 puts( "*** END OF POSIX TEST 11 ***" ); 104 exit( 0 );104 rtems_test_exit( 0 ); 105 105 106 106 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx12/init.c
r116845e8 rd802489 134 134 135 135 puts( "*** END OF POSIX TEST 12 ***" ); 136 exit( 0 );136 rtems_test_exit( 0 ); 137 137 138 138 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psx13/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
c/src/tests/psxtests/psx13/main.c
r116845e8 rd802489 15 15 16 16 #include <bsp.h> 17 #include <pmacros.h> 17 18 18 19 void test_main( void ); … … 23 24 { 24 25 test_main(); 25 exit( 0 );26 rtems_test_exit( 0 ); 26 27 } 27 28 -
c/src/tests/psxtests/psx13/test.c
r116845e8 rd802489 34 34 35 35 #include <stdio.h> 36 37 #include <pmacros.h> 36 38 37 39 /*------------------------------------------------------------------- … … 670 672 671 673 printf( "\n\n*** END OF TEST PSX13 ***" ); 672 exit(0);674 rtems_test_exit(0); 673 675 } 674 676 -
c/src/tests/psxtests/psxcancel/init.c
r116845e8 rd802489 30 30 31 31 #include <bsp.h> /* for device driver prototypes */ 32 #include <pmacros.h> 32 33 33 34 rtems_task Init( rtems_task_argument argument); … … 93 94 if (task_ret) { 94 95 perror("pthread_create: countTask"); 95 exit(EXIT_FAILURE);96 rtems_test_exit(EXIT_FAILURE); 96 97 } 97 98 /* sleep for 5 seconds, then cancel it */ … … 107 108 if (task_ret) { 108 109 perror("pthread_create: countTask"); 109 exit(EXIT_FAILURE);110 rtems_test_exit(EXIT_FAILURE); 110 111 } 111 112 /* sleep for 5 seconds, then cancel it */ … … 121 122 return 0; 122 123 #else 123 exit(EXIT_SUCCESS);124 rtems_test_exit(EXIT_SUCCESS); 124 125 #endif 125 126 } -
c/src/tests/psxtests/psxchroot01/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
c/src/tests/psxtests/psxchroot01/main.c
r116845e8 rd802489 6 6 7 7 #include <bsp.h> 8 #include <pmacros.h> 8 9 9 10 void test_main( void ); … … 14 15 { 15 16 test_main(); 16 exit( 0 );17 rtems_test_exit( 0 ); 17 18 } 18 19 -
c/src/tests/psxtests/psxchroot01/test.c
r116845e8 rd802489 29 29 #include <errno.h> 30 30 #include <rtems/libio.h> 31 #include <pmacros.h> 31 32 32 33 void touch( char *file ) … … 118 119 119 120 printf( "*** END OF CHROOT01 TEST ***\n" ); 120 exit(0);121 rtems_test_exit(0); 121 122 } 122 123 -
c/src/tests/psxtests/psxfile01/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
c/src/tests/psxtests/psxfile01/main.c
r116845e8 rd802489 15 15 16 16 #include <bsp.h> 17 #include <pmacros.h> 17 18 18 19 void test_main( void ); … … 23 24 { 24 25 test_main(); 25 exit( 0 );26 rtems_test_exit( 0 ); 26 27 } 27 28 -
c/src/tests/psxtests/psxfile01/test.c
r116845e8 rd802489 504 504 505 505 printf( "*** END OF FILE TEST 1 ***\n" ); 506 exit( 0 );506 rtems_test_exit( 0 ); 507 507 } 508 508 -
c/src/tests/psxtests/psxfile01/test_cat.c
r116845e8 rd802489 17 17 18 18 #include <assert.h> 19 20 #include <pmacros.h> 19 21 20 22 /* … … 45 47 if ( fd == -1 ) { 46 48 printf( "test_cat: open( %s ) failed : %s\n", file, strerror( errno ) ); 47 exit( 0 );49 rtems_test_exit( 0 ); 48 50 } 49 51 -
c/src/tests/psxtests/psxfile01/test_extend.c
r116845e8 rd802489 22 22 #include <assert.h> 23 23 24 #include <pmacros.h> 25 24 26 /* 25 27 * test_extend routine … … 38 40 if ( fd == -1 ) { 39 41 printf( "test_extend: open( %s ) failed : %s\n", file, strerror( errno ) ); 40 exit( 0 );42 rtems_test_exit( 0 ); 41 43 } 42 44 … … 47 49 if ( status == -1 ) { 48 50 printf( "test_extend: write( %s ) failed : %s\n", file, strerror( errno ) ); 49 exit( 0 );51 rtems_test_exit( 0 ); 50 52 } 51 53 … … 53 55 printf( "test_extend: write( %s ) only wrote %d of %d bytes\n", 54 56 file, status, 1 ); 55 exit( 0 );57 rtems_test_exit( 0 ); 56 58 } 57 59 -
c/src/tests/psxtests/psxfile01/test_write.c
r116845e8 rd802489 16 16 17 17 #include <assert.h> 18 19 #include <pmacros.h> 18 20 19 21 /* … … 37 39 if ( fd == -1 ) { 38 40 printf( "test_write: open( %s ) failed : %s\n", file, strerror( errno ) ); 39 exit( 0 );41 rtems_test_exit( 0 ); 40 42 } 41 43 … … 46 48 if ( status == -1 ) { 47 49 printf( "test_write: write( %s ) failed : %s\n", file, strerror( errno ) ); 48 exit( 0 );50 rtems_test_exit( 0 ); 49 51 } 50 52 … … 52 54 printf( "test_write: write( %s ) only wrote %d of %d bytes\n", 53 55 file, status, length ); 54 exit( 0 );56 rtems_test_exit( 0 ); 55 57 } 56 58 -
c/src/tests/psxtests/psxmount/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
c/src/tests/psxtests/psxmount/main.c
r116845e8 rd802489 8 8 9 9 #include <bsp.h> 10 #include <pmacros.h> 10 11 11 12 void test_main( void ); … … 16 17 { 17 18 test_main(); 18 exit( 0 );19 rtems_test_exit( 0 ); 19 20 } 20 21 -
c/src/tests/psxtests/psxmount/test.c
r116845e8 rd802489 32 32 #include <rtems/libio.h> 33 33 #include <imfs.h> 34 #include <pmacros.h> 34 35 35 36 extern rtems_filesystem_location_info_t rtems_filesystem_current; … … 442 443 443 444 printf( "\n\n*** END OF MOUNT/UNMOUNT TEST ***\n" ); 444 exit(0);445 rtems_test_exit(0); 445 446 } 446 447 -
c/src/tests/psxtests/psxmsgq01/init.c
r116845e8 rd802489 1158 1158 1159 1159 puts( "*** END OF POSIX MESSAGE QUEUE TEST ***" ); 1160 exit( 0 );1160 rtems_test_exit( 0 ); 1161 1161 1162 1162 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psxreaddir/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
c/src/tests/psxtests/psxreaddir/main.c
r116845e8 rd802489 6 6 7 7 #include <bsp.h> 8 #include <pmacros.h> 8 9 9 10 void test_main( void ); … … 14 15 { 15 16 test_main(); 16 exit( 0 );17 rtems_test_exit( 0 ); 17 18 } 18 19 -
c/src/tests/psxtests/psxreaddir/test.c
r116845e8 rd802489 49 49 #if defined(__rtems__) 50 50 #define d_type d_reclen 51 #include <pmacros.h> 51 52 #endif 52 53 … … 496 497 test_across_mount(); 497 498 printf( "\n\n*** END OF READDIR TEST ***\n" ); 498 exit(0);499 } 500 499 rtems_test_exit(0); 500 } 501 -
c/src/tests/psxtests/psxsem01/init.c
r116845e8 rd802489 240 240 241 241 puts( "*** POSIX SEMAPHORE MANAGER TEST 1 COMPLETED ***" ); 242 exit(0);242 rtems_test_exit(0); 243 243 244 244 return NULL; /* just so the compiler thinks we returned something */ -
c/src/tests/psxtests/psxstat/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
c/src/tests/psxtests/psxstat/main.c
r116845e8 rd802489 15 15 16 16 #include <bsp.h> 17 #include <pmacros.h> 17 18 18 19 void test_main( void ); … … 23 24 { 24 25 test_main(); 25 exit( 0 );26 rtems_test_exit( 0 ); 26 27 } 27 28 -
c/src/tests/psxtests/psxstat/test.c
r116845e8 rd802489 25 25 #include <rtems/libio.h> 26 26 #include <imfs.h> 27 #include <pmacros.h> 27 28 28 29 #define MAXSYMLINK 5 /* There needs to be a better way of getting this. */ … … 846 847 847 848 puts( "\n\n*** END OF STAT TEST 01 ***" ); 848 exit(0);849 } 850 851 852 853 854 855 856 849 rtems_test_exit(0); 850 } 851 852 853 854 855 856 857 -
c/src/tests/psxtests/psxtime/main.c
r116845e8 rd802489 15 15 16 16 #include <bsp.h> 17 #include <tmacros.h> /* instantiate buffering code if needed */ 17 18 18 19 void test_main( void ); … … 23 24 { 24 25 test_main(); 25 exit( 0 );26 rtems_test_exit( 0 ); 26 27 } 27 28 -
c/src/tests/psxtests/psxtime/test.c
r116845e8 rd802489 111 111 112 112 puts( "\n\n*** END OF TIME OF DAY TEST 01 ***" ); 113 exit(0);113 rtems_test_exit(0); 114 114 } 115 115 -
c/src/tests/psxtests/psxtimer/psxtimer.c
r116845e8 rd802489 333 333 sleep (20); 334 334 puts( "\n\n*** End of POSIX Timers Test ***" ); 335 exit (0);335 rtems_test_exit (0); 336 336 } 337 337 -
testsuites/psxtests/ChangeLog
r116845e8 rd802489 1 2002-08-01 Joel Sherrill <joel@OARcorp.com> 2 3 * Per PR47 add support for buffered test output. This involved 4 adding defines to redirect output to a buffer and dump it when 5 full, at "test pause", and at exit. To avoid problems when redefining 6 exit(), all tests were modified to call rtems_test_exit(). 7 Some tests, notable psxtests, had to be modified to include 8 the standard test macro .h file (pmacros.h or tmacros.h) to 9 enable this support. 10 * include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c, 11 psx03/init.c, psx04/init.c, psx05/init.c, psx06/init.c, psx07/init.c, 12 psx08/task3.c, psx09/init.c, psx10/init.c, psx11/init.c, 13 psx12/init.c, psx13/Makefile.am, psx13/main.c, psx13/test.c, 14 psxcancel/init.c, psxchroot01/Makefile.am, psxchroot01/main.c, 15 psxchroot01/test.c, psxfile01/Makefile.am, psxfile01/main.c, 16 psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c, 17 psxfile01/test_write.c, psxmount/Makefile.am, psxmount/main.c, 18 psxmount/test.c, psxmsgq01/init.c, psxreaddir/Makefile.am, 19 psxreaddir/main.c, psxreaddir/test.c, psxsem01/init.c, 20 psxstat/Makefile.am, psxstat/main.c, psxstat/test.c, psxtime/main.c, 21 psxtime/test.c, psxtimer/psxtimer.c: Modified. 22 1 23 2002-07-05 Joel Sherrill <joel@OARcorp.com> 2 24 -
testsuites/psxtests/include/pmacros.h
r116845e8 rd802489 13 13 #include <time.h> 14 14 #include <unistd.h> 15 16 #include <buffer_test_io.h> 15 17 16 18 /* … … 68 70 #define print_current_time(s1, s2) \ 69 71 do { \ 70 char _ buffer[32]; \72 char _time_buffer[32]; \ 71 73 int _status; \ 72 74 struct timespec _tv; \ … … 75 77 assert( !_status ); \ 76 78 \ 77 (void) ctime_r( &_tv.tv_sec, _ buffer ); \78 _ buffer[ strlen(_buffer ) - 1 ] = 0; \79 printf( "%s%s%s\n", s1, _ buffer, s2 ); \79 (void) ctime_r( &_tv.tv_sec, _time_buffer ); \ 80 _time_buffer[ strlen( _time_buffer ) - 1 ] = 0; \ 81 printf( "%s%s%s\n", s1, _time_buffer, s2 ); \ 80 82 fflush(stdout); \ 81 83 } while ( 0 ) -
testsuites/psxtests/psx01/task.c
r116845e8 rd802489 88 88 89 89 puts( "*** END OF POSIX TEST 1 ***" ); 90 exit( 0 );90 rtems_test_exit( 0 ); 91 91 92 92 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx02/init.c
r116845e8 rd802489 140 140 141 141 puts( "*** END OF POSIX TEST 2 ***" ); 142 exit( 0 );142 rtems_test_exit( 0 ); 143 143 144 144 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx02/task.c
r116845e8 rd802489 39 39 } 40 40 puts( "*** END OF POSIX TEST 2 ***" ); 41 exit( 0 );41 rtems_test_exit( 0 ); 42 42 43 43 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx03/init.c
r116845e8 rd802489 198 198 199 199 puts( "*** END OF POSIX TEST 3 ***" ); 200 exit( 0 );200 rtems_test_exit( 0 ); 201 201 202 202 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx04/init.c
r116845e8 rd802489 552 552 553 553 puts( "*** END OF POSIX TEST 4 ***" ); 554 exit( 0 );554 rtems_test_exit( 0 ); 555 555 556 556 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx05/init.c
r116845e8 rd802489 578 578 579 579 puts( "*** END OF POSIX TEST 5 ***" ); 580 exit( 0 );580 rtems_test_exit( 0 ); 581 581 582 582 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx06/init.c
r116845e8 rd802489 115 115 116 116 puts( "*** END OF POSIX TEST 6 ***" ); 117 exit( 0 );117 rtems_test_exit( 0 ); 118 118 119 119 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx07/init.c
r116845e8 rd802489 488 488 489 489 puts( "*** END OF POSIX TEST 7 ***" ); 490 exit( 0 );490 rtems_test_exit( 0 ); 491 491 492 492 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx08/task3.c
r116845e8 rd802489 46 46 47 47 puts( "*** END OF POSIX TEST 8 ***" ); 48 exit( 0 );48 rtems_test_exit( 0 ); 49 49 50 50 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx09/init.c
r116845e8 rd802489 220 220 221 221 puts( "*** END OF POSIX TEST 9 ***" ); 222 exit( 0 );222 rtems_test_exit( 0 ); 223 223 224 224 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx10/init.c
r116845e8 rd802489 306 306 307 307 puts( "*** END OF POSIX TEST 10 ***" ); 308 exit( 0 );308 rtems_test_exit( 0 ); 309 309 310 310 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx11/init.c
r116845e8 rd802489 102 102 103 103 puts( "*** END OF POSIX TEST 11 ***" ); 104 exit( 0 );104 rtems_test_exit( 0 ); 105 105 106 106 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx12/init.c
r116845e8 rd802489 134 134 135 135 puts( "*** END OF POSIX TEST 12 ***" ); 136 exit( 0 );136 rtems_test_exit( 0 ); 137 137 138 138 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psx13/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
testsuites/psxtests/psx13/main.c
r116845e8 rd802489 15 15 16 16 #include <bsp.h> 17 #include <pmacros.h> 17 18 18 19 void test_main( void ); … … 23 24 { 24 25 test_main(); 25 exit( 0 );26 rtems_test_exit( 0 ); 26 27 } 27 28 -
testsuites/psxtests/psx13/test.c
r116845e8 rd802489 34 34 35 35 #include <stdio.h> 36 37 #include <pmacros.h> 36 38 37 39 /*------------------------------------------------------------------- … … 670 672 671 673 printf( "\n\n*** END OF TEST PSX13 ***" ); 672 exit(0);674 rtems_test_exit(0); 673 675 } 674 676 -
testsuites/psxtests/psxcancel/init.c
r116845e8 rd802489 30 30 31 31 #include <bsp.h> /* for device driver prototypes */ 32 #include <pmacros.h> 32 33 33 34 rtems_task Init( rtems_task_argument argument); … … 93 94 if (task_ret) { 94 95 perror("pthread_create: countTask"); 95 exit(EXIT_FAILURE);96 rtems_test_exit(EXIT_FAILURE); 96 97 } 97 98 /* sleep for 5 seconds, then cancel it */ … … 107 108 if (task_ret) { 108 109 perror("pthread_create: countTask"); 109 exit(EXIT_FAILURE);110 rtems_test_exit(EXIT_FAILURE); 110 111 } 111 112 /* sleep for 5 seconds, then cancel it */ … … 121 122 return 0; 122 123 #else 123 exit(EXIT_SUCCESS);124 rtems_test_exit(EXIT_SUCCESS); 124 125 #endif 125 126 } -
testsuites/psxtests/psxchroot01/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
testsuites/psxtests/psxchroot01/main.c
r116845e8 rd802489 6 6 7 7 #include <bsp.h> 8 #include <pmacros.h> 8 9 9 10 void test_main( void ); … … 14 15 { 15 16 test_main(); 16 exit( 0 );17 rtems_test_exit( 0 ); 17 18 } 18 19 -
testsuites/psxtests/psxchroot01/test.c
r116845e8 rd802489 29 29 #include <errno.h> 30 30 #include <rtems/libio.h> 31 #include <pmacros.h> 31 32 32 33 void touch( char *file ) … … 118 119 119 120 printf( "*** END OF CHROOT01 TEST ***\n" ); 120 exit(0);121 rtems_test_exit(0); 121 122 } 122 123 -
testsuites/psxtests/psxfile01/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
testsuites/psxtests/psxfile01/main.c
r116845e8 rd802489 15 15 16 16 #include <bsp.h> 17 #include <pmacros.h> 17 18 18 19 void test_main( void ); … … 23 24 { 24 25 test_main(); 25 exit( 0 );26 rtems_test_exit( 0 ); 26 27 } 27 28 -
testsuites/psxtests/psxfile01/test.c
r116845e8 rd802489 504 504 505 505 printf( "*** END OF FILE TEST 1 ***\n" ); 506 exit( 0 );506 rtems_test_exit( 0 ); 507 507 } 508 508 -
testsuites/psxtests/psxfile01/test_cat.c
r116845e8 rd802489 17 17 18 18 #include <assert.h> 19 20 #include <pmacros.h> 19 21 20 22 /* … … 45 47 if ( fd == -1 ) { 46 48 printf( "test_cat: open( %s ) failed : %s\n", file, strerror( errno ) ); 47 exit( 0 );49 rtems_test_exit( 0 ); 48 50 } 49 51 -
testsuites/psxtests/psxfile01/test_extend.c
r116845e8 rd802489 22 22 #include <assert.h> 23 23 24 #include <pmacros.h> 25 24 26 /* 25 27 * test_extend routine … … 38 40 if ( fd == -1 ) { 39 41 printf( "test_extend: open( %s ) failed : %s\n", file, strerror( errno ) ); 40 exit( 0 );42 rtems_test_exit( 0 ); 41 43 } 42 44 … … 47 49 if ( status == -1 ) { 48 50 printf( "test_extend: write( %s ) failed : %s\n", file, strerror( errno ) ); 49 exit( 0 );51 rtems_test_exit( 0 ); 50 52 } 51 53 … … 53 55 printf( "test_extend: write( %s ) only wrote %d of %d bytes\n", 54 56 file, status, 1 ); 55 exit( 0 );57 rtems_test_exit( 0 ); 56 58 } 57 59 -
testsuites/psxtests/psxfile01/test_write.c
r116845e8 rd802489 16 16 17 17 #include <assert.h> 18 19 #include <pmacros.h> 18 20 19 21 /* … … 37 39 if ( fd == -1 ) { 38 40 printf( "test_write: open( %s ) failed : %s\n", file, strerror( errno ) ); 39 exit( 0 );41 rtems_test_exit( 0 ); 40 42 } 41 43 … … 46 48 if ( status == -1 ) { 47 49 printf( "test_write: write( %s ) failed : %s\n", file, strerror( errno ) ); 48 exit( 0 );50 rtems_test_exit( 0 ); 49 51 } 50 52 … … 52 54 printf( "test_write: write( %s ) only wrote %d of %d bytes\n", 53 55 file, status, length ); 54 exit( 0 );56 rtems_test_exit( 0 ); 55 57 } 56 58 -
testsuites/psxtests/psxmount/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
testsuites/psxtests/psxmount/main.c
r116845e8 rd802489 8 8 9 9 #include <bsp.h> 10 #include <pmacros.h> 10 11 11 12 void test_main( void ); … … 16 17 { 17 18 test_main(); 18 exit( 0 );19 rtems_test_exit( 0 ); 19 20 } 20 21 -
testsuites/psxtests/psxmount/test.c
r116845e8 rd802489 32 32 #include <rtems/libio.h> 33 33 #include <imfs.h> 34 #include <pmacros.h> 34 35 35 36 extern rtems_filesystem_location_info_t rtems_filesystem_current; … … 442 443 443 444 printf( "\n\n*** END OF MOUNT/UNMOUNT TEST ***\n" ); 444 exit(0);445 rtems_test_exit(0); 445 446 } 446 447 -
testsuites/psxtests/psxmsgq01/init.c
r116845e8 rd802489 1158 1158 1159 1159 puts( "*** END OF POSIX MESSAGE QUEUE TEST ***" ); 1160 exit( 0 );1160 rtems_test_exit( 0 ); 1161 1161 1162 1162 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psxreaddir/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
testsuites/psxtests/psxreaddir/main.c
r116845e8 rd802489 6 6 7 7 #include <bsp.h> 8 #include <pmacros.h> 8 9 9 10 void test_main( void ); … … 14 15 { 15 16 test_main(); 16 exit( 0 );17 rtems_test_exit( 0 ); 17 18 } 18 19 -
testsuites/psxtests/psxreaddir/test.c
r116845e8 rd802489 49 49 #if defined(__rtems__) 50 50 #define d_type d_reclen 51 #include <pmacros.h> 51 52 #endif 52 53 … … 496 497 test_across_mount(); 497 498 printf( "\n\n*** END OF READDIR TEST ***\n" ); 498 exit(0);499 } 500 499 rtems_test_exit(0); 500 } 501 -
testsuites/psxtests/psxsem01/init.c
r116845e8 rd802489 240 240 241 241 puts( "*** POSIX SEMAPHORE MANAGER TEST 1 COMPLETED ***" ); 242 exit(0);242 rtems_test_exit(0); 243 243 244 244 return NULL; /* just so the compiler thinks we returned something */ -
testsuites/psxtests/psxstat/Makefile.am
r116845e8 rd802489 30 30 # 31 31 32 AM_CPPFLAGS += -I$(top_srcdir)/include 33 32 34 ${PGM}: $(OBJS) $(LINK_FILES) 33 35 $(make-exe) -
testsuites/psxtests/psxstat/main.c
r116845e8 rd802489 15 15 16 16 #include <bsp.h> 17 #include <pmacros.h> 17 18 18 19 void test_main( void ); … … 23 24 { 24 25 test_main(); 25 exit( 0 );26 rtems_test_exit( 0 ); 26 27 } 27 28 -
testsuites/psxtests/psxstat/test.c
r116845e8 rd802489 25 25 #include <rtems/libio.h> 26 26 #include <imfs.h> 27 #include <pmacros.h> 27 28 28 29 #define MAXSYMLINK 5 /* There needs to be a better way of getting this. */ … … 846 847 847 848 puts( "\n\n*** END OF STAT TEST 01 ***" ); 848 exit(0);849 } 850 851 852 853 854 855 856 849 rtems_test_exit(0); 850 } 851 852 853 854 855 856 857 -
testsuites/psxtests/psxtime/main.c
r116845e8 rd802489 15 15 16 16 #include <bsp.h> 17 #include <tmacros.h> /* instantiate buffering code if needed */ 17 18 18 19 void test_main( void ); … … 23 24 { 24 25 test_main(); 25 exit( 0 );26 rtems_test_exit( 0 ); 26 27 } 27 28 -
testsuites/psxtests/psxtime/test.c
r116845e8 rd802489 111 111 112 112 puts( "\n\n*** END OF TIME OF DAY TEST 01 ***" ); 113 exit(0);113 rtems_test_exit(0); 114 114 } 115 115 -
testsuites/psxtests/psxtimer/psxtimer.c
r116845e8 rd802489 333 333 sleep (20); 334 334 puts( "\n\n*** End of POSIX Timers Test ***" ); 335 exit (0);335 rtems_test_exit (0); 336 336 } 337 337
Note: See TracChangeset
for help on using the changeset viewer.