Changeset 7b64b25b in rtems
- Timestamp:
- 05/29/03 19:07:59 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 011e3b3f
- Parents:
- 18ee864
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/psxtests/ChangeLog
r18ee864 r7b64b25b 1 2003-05-29 Joel Sherrill <joel@OARcorp.com> 2 3 * psx02/init.c, psx04/init.c, psx13/test.c, psxchroot01/test.c, 4 psxhdrs/pthread07.c, psxmsgq01/init.c, psxreaddir/test.c, 5 psxtimer/psxtimer.c: Removed warnings. 6 1 7 2003-05-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 8 -
c/src/tests/psxtests/psx02/init.c
r18ee864 r7b64b25b 24 24 printf( 25 25 "Signal: %d caught by 0x%x (%d)\n", 26 signo,27 pthread_self(),26 (int) signo, 27 (unsigned int) pthread_self(), 28 28 Signal_count 29 29 ); … … 87 87 status = sigpending( &pending_set ); 88 88 assert( !status ); 89 printf( "Init: Signals pending 0x%08x\n", pending_set );89 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 90 90 91 91 … … 96 96 status = sigpending( &pending_set ); 97 97 assert( !status ); 98 printf( "Init: Signals pending 0x%08x\n", pending_set );98 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 99 99 100 100 printf( "Init: Unblock SIGUSR1\n" ); -
c/src/tests/psxtests/psx04/init.c
r18ee864 r7b64b25b 78 78 status = sigemptyset( &act.sa_mask ); 79 79 assert( !status ); 80 printf( "Init: sigemptyset - set= 0x%08x\n", act.sa_mask );80 printf( "Init: sigemptyset - set= 0x%08x\n", (unsigned int) act.sa_mask ); 81 81 82 82 /* test sigfillset following the above sigemptyset */ … … 84 84 status = sigfillset( &act.sa_mask ); 85 85 assert( !status ); 86 printf( "Init: sigfillset - set= 0x%08x\n", act.sa_mask );86 printf( "Init: sigfillset - set= 0x%08x\n", (unsigned int) act.sa_mask ); 87 87 88 88 /* test sigdelset */ … … 90 90 status = sigdelset( &act.sa_mask, SIGUSR1 ); 91 91 assert( !status ); 92 printf( "Init: sigdelset - delete SIGUSR1 set= 0x%08x\n", act.sa_mask ); 92 printf( "Init: sigdelset - delete SIGUSR1 set= 0x%08x\n", 93 (unsigned int) act.sa_mask ); 93 94 94 95 /* test sigismember - FALSE */ … … 167 168 status = sigpending( &pending_set ); 168 169 assert( !status ); 169 printf( "Init: Signals pending 0x%08x\n", pending_set );170 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 170 171 171 172 puts( "Init: send SIGUSR1 to process" ); … … 175 176 status = sigpending( &pending_set ); 176 177 assert( !status ); 177 printf( "Init: Signals pending 0x%08x\n", pending_set );178 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 178 179 179 180 puts( "Init: Unblock SIGUSR1" ); … … 195 196 status = sigpending( &pending_set ); 196 197 assert( !status ); 197 printf( "Init: Signals pending 0x%08x\n", pending_set );198 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 198 199 199 200 puts( "Init: sleep so the other task can block" ); … … 209 210 status = sigpending( &pending_set ); 210 211 assert( !status ); 211 printf( "Init: Signals pending 0x%08x\n", pending_set );212 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 212 213 213 214 puts( "Init: sleep so the other task can catch signal" ); … … 273 274 puts( "Init: Block SIGUSR1 and SIGUSR2 only" ); 274 275 status = pthread_sigmask( SIG_SETMASK, &mask, &oset ); 275 printf( "Init: Previous blocked set was 0x%08x\n", oset );276 printf( "Init: Previous blocked set was 0x%08x\n", (unsigned int) oset ); 276 277 assert( !status ); 277 278 … … 279 280 280 281 status = pthread_sigmask( 0, NULL, &oset ); 281 printf( "Init: Current blocked set is 0x%08x\n", oset );282 printf( "Init: Current blocked set is 0x%08x\n", (unsigned int) oset ); 282 283 assert( !status ); 283 284 … … 289 290 puts( "Init: Unblock all signals" ); 290 291 status = pthread_sigmask( SIG_SETMASK, &mask, &oset ); 291 printf( "Init: Previous blocked set was 0x%08x\n", oset );292 printf( "Init: Previous blocked set was 0x%08x\n", (unsigned int) oset ); 292 293 assert( !status ); 293 294 -
c/src/tests/psxtests/psx13/test.c
r18ee864 r7b64b25b 34 34 35 35 #include <stdio.h> 36 #include <unistd.h> 36 37 37 38 #include <pmacros.h> -
c/src/tests/psxtests/psxchroot01/test.c
r18ee864 r7b64b25b 67 67 #endif 68 68 { 69 int fd;70 int i;71 69 int status; 72 struct stat s;73 70 74 71 /* -
c/src/tests/psxtests/psxhdrs/pthread07.c
r18ee864 r7b64b25b 25 25 for ( ; ; ) 26 26 ; 27 return NULL; 27 28 } 28 29 -
c/src/tests/psxtests/psxmsgq01/init.c
r18ee864 r7b64b25b 676 676 void verify_open_functionality() 677 677 { 678 #if 0 678 679 mqd_t n_mq; 680 #endif 679 681 680 682 Start_Test( "mq_open functionality" ); … … 766 768 } 767 769 768 printf("Init: % d sec %d us\n", tv3.tv_sec,tv3.tv_usec );770 printf("Init: %ld sec %ld us\n", (long)tv3.tv_sec, (long)tv3.tv_usec ); 769 771 770 772 if ( is_blocking ) /* non-blocking queue */ … … 818 820 if ( is_blocking ) 819 821 fatal_posix_service_status( errno, ETIMEDOUT, "errno ETIMEDOUT"); 820 printf( "Init: % d sec %d us\n", tv3.tv_sec,tv3.tv_usec );822 printf( "Init: %ld sec %ld us\n", (long)tv3.tv_sec, (long)tv3.tv_usec ); 821 823 822 824 if ( is_blocking ) -
c/src/tests/psxtests/psxreaddir/test.c
r18ee864 r7b64b25b 157 157 } 158 158 159 int compare_ascending( struct dirent **a,struct dirent **b )159 int compare_ascending(const struct dirent **a, const struct dirent **b ) 160 160 { 161 161 int i; … … 181 181 } 182 182 183 inttest_across_mount()183 void test_across_mount() 184 184 { 185 185 rtems_filesystem_mount_table_entry_t *mt_entry; -
c/src/tests/psxtests/psxtimer/psxtimer.c
r18ee864 r7b64b25b 96 96 printf("Executing task A %s", ctime(&clock)); 97 97 } 98 } 98 return NULL; 99 } 99 100 100 101 /* task B */ … … 153 154 x++; 154 155 } 156 return NULL; 155 157 } 156 158 … … 210 212 pthread_mutex_unlock (&data.mutex); 211 213 } 212 } 214 return NULL; 215 } 213 216 214 217 -
testsuites/psxtests/ChangeLog
r18ee864 r7b64b25b 1 2003-05-29 Joel Sherrill <joel@OARcorp.com> 2 3 * psx02/init.c, psx04/init.c, psx13/test.c, psxchroot01/test.c, 4 psxhdrs/pthread07.c, psxmsgq01/init.c, psxreaddir/test.c, 5 psxtimer/psxtimer.c: Removed warnings. 6 1 7 2003-05-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 8 -
testsuites/psxtests/psx02/init.c
r18ee864 r7b64b25b 24 24 printf( 25 25 "Signal: %d caught by 0x%x (%d)\n", 26 signo,27 pthread_self(),26 (int) signo, 27 (unsigned int) pthread_self(), 28 28 Signal_count 29 29 ); … … 87 87 status = sigpending( &pending_set ); 88 88 assert( !status ); 89 printf( "Init: Signals pending 0x%08x\n", pending_set );89 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 90 90 91 91 … … 96 96 status = sigpending( &pending_set ); 97 97 assert( !status ); 98 printf( "Init: Signals pending 0x%08x\n", pending_set );98 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 99 99 100 100 printf( "Init: Unblock SIGUSR1\n" ); -
testsuites/psxtests/psx04/init.c
r18ee864 r7b64b25b 78 78 status = sigemptyset( &act.sa_mask ); 79 79 assert( !status ); 80 printf( "Init: sigemptyset - set= 0x%08x\n", act.sa_mask );80 printf( "Init: sigemptyset - set= 0x%08x\n", (unsigned int) act.sa_mask ); 81 81 82 82 /* test sigfillset following the above sigemptyset */ … … 84 84 status = sigfillset( &act.sa_mask ); 85 85 assert( !status ); 86 printf( "Init: sigfillset - set= 0x%08x\n", act.sa_mask );86 printf( "Init: sigfillset - set= 0x%08x\n", (unsigned int) act.sa_mask ); 87 87 88 88 /* test sigdelset */ … … 90 90 status = sigdelset( &act.sa_mask, SIGUSR1 ); 91 91 assert( !status ); 92 printf( "Init: sigdelset - delete SIGUSR1 set= 0x%08x\n", act.sa_mask ); 92 printf( "Init: sigdelset - delete SIGUSR1 set= 0x%08x\n", 93 (unsigned int) act.sa_mask ); 93 94 94 95 /* test sigismember - FALSE */ … … 167 168 status = sigpending( &pending_set ); 168 169 assert( !status ); 169 printf( "Init: Signals pending 0x%08x\n", pending_set );170 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 170 171 171 172 puts( "Init: send SIGUSR1 to process" ); … … 175 176 status = sigpending( &pending_set ); 176 177 assert( !status ); 177 printf( "Init: Signals pending 0x%08x\n", pending_set );178 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 178 179 179 180 puts( "Init: Unblock SIGUSR1" ); … … 195 196 status = sigpending( &pending_set ); 196 197 assert( !status ); 197 printf( "Init: Signals pending 0x%08x\n", pending_set );198 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 198 199 199 200 puts( "Init: sleep so the other task can block" ); … … 209 210 status = sigpending( &pending_set ); 210 211 assert( !status ); 211 printf( "Init: Signals pending 0x%08x\n", pending_set );212 printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set ); 212 213 213 214 puts( "Init: sleep so the other task can catch signal" ); … … 273 274 puts( "Init: Block SIGUSR1 and SIGUSR2 only" ); 274 275 status = pthread_sigmask( SIG_SETMASK, &mask, &oset ); 275 printf( "Init: Previous blocked set was 0x%08x\n", oset );276 printf( "Init: Previous blocked set was 0x%08x\n", (unsigned int) oset ); 276 277 assert( !status ); 277 278 … … 279 280 280 281 status = pthread_sigmask( 0, NULL, &oset ); 281 printf( "Init: Current blocked set is 0x%08x\n", oset );282 printf( "Init: Current blocked set is 0x%08x\n", (unsigned int) oset ); 282 283 assert( !status ); 283 284 … … 289 290 puts( "Init: Unblock all signals" ); 290 291 status = pthread_sigmask( SIG_SETMASK, &mask, &oset ); 291 printf( "Init: Previous blocked set was 0x%08x\n", oset );292 printf( "Init: Previous blocked set was 0x%08x\n", (unsigned int) oset ); 292 293 assert( !status ); 293 294 -
testsuites/psxtests/psx13/test.c
r18ee864 r7b64b25b 34 34 35 35 #include <stdio.h> 36 #include <unistd.h> 36 37 37 38 #include <pmacros.h> -
testsuites/psxtests/psxchroot01/test.c
r18ee864 r7b64b25b 67 67 #endif 68 68 { 69 int fd;70 int i;71 69 int status; 72 struct stat s;73 70 74 71 /* -
testsuites/psxtests/psxhdrs/pthread07.c
r18ee864 r7b64b25b 25 25 for ( ; ; ) 26 26 ; 27 return NULL; 27 28 } 28 29 -
testsuites/psxtests/psxmsgq01/init.c
r18ee864 r7b64b25b 676 676 void verify_open_functionality() 677 677 { 678 #if 0 678 679 mqd_t n_mq; 680 #endif 679 681 680 682 Start_Test( "mq_open functionality" ); … … 766 768 } 767 769 768 printf("Init: % d sec %d us\n", tv3.tv_sec,tv3.tv_usec );770 printf("Init: %ld sec %ld us\n", (long)tv3.tv_sec, (long)tv3.tv_usec ); 769 771 770 772 if ( is_blocking ) /* non-blocking queue */ … … 818 820 if ( is_blocking ) 819 821 fatal_posix_service_status( errno, ETIMEDOUT, "errno ETIMEDOUT"); 820 printf( "Init: % d sec %d us\n", tv3.tv_sec,tv3.tv_usec );822 printf( "Init: %ld sec %ld us\n", (long)tv3.tv_sec, (long)tv3.tv_usec ); 821 823 822 824 if ( is_blocking ) -
testsuites/psxtests/psxreaddir/test.c
r18ee864 r7b64b25b 157 157 } 158 158 159 int compare_ascending( struct dirent **a,struct dirent **b )159 int compare_ascending(const struct dirent **a, const struct dirent **b ) 160 160 { 161 161 int i; … … 181 181 } 182 182 183 inttest_across_mount()183 void test_across_mount() 184 184 { 185 185 rtems_filesystem_mount_table_entry_t *mt_entry; -
testsuites/psxtests/psxtimer/psxtimer.c
r18ee864 r7b64b25b 96 96 printf("Executing task A %s", ctime(&clock)); 97 97 } 98 } 98 return NULL; 99 } 99 100 100 101 /* task B */ … … 153 154 x++; 154 155 } 156 return NULL; 155 157 } 156 158 … … 210 212 pthread_mutex_unlock (&data.mutex); 211 213 } 212 } 214 return NULL; 215 } 213 216 214 217
Note: See TracChangeset
for help on using the changeset viewer.