Changeset 3251b55 in rtems
- Timestamp:
- 11/02/99 16:29:56 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 78edd44
- Parents:
- 5f2566b
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/psxtests/psxreaddir/test.c
r5f2566b r3251b55 20 20 * $Id$ 21 21 */ 22 22 23 #include <stdio.h> 23 24 #include <sys/types.h> … … 247 248 assert( status == 1 ); 248 249 250 #if 0 249 251 printf("fcntl F_DUPFD should return 0\n"); 250 252 status = fcntl( fd, F_DUPFD, 0 ); 251 253 assert ( status == 0 ); 252 253 printf("fcntl F_GETFL should return -1\n"); 254 #else 255 printf("fcntl F_DUPFD should return 0 -- skip until implemented\n"); 256 #endif 257 258 printf("fcntl F_GETFL returns current flags\n"); 254 259 status = fcntl( fd, F_GETFL, 1 ); 255 assert ( status == -1 ); 256 257 printf("fcntl F_SETFL should return -1\n"); 258 status = fcntl( fd, F_SETFL, 1 ); 259 assert ( status == -1 ); 260 printf("fcntl F_GETFL returned 0x%x\n", status ); 261 assert( status != -1 ); 262 263 printf("fcntl F_SETFL to add O_APPEND and O_NONBLOCK\n"); 264 status = fcntl( fd, F_SETFL, O_APPEND|O_NONBLOCK ); 265 assert ( status != -1 ); 266 267 printf("fcntl F_GETFL return current flags to see changes\n"); 268 status = fcntl( fd, F_GETFL, 1 ); 269 printf("fcntl F_GETFL returned 0x%x\n", status ); 270 assert( status != -1 ); 260 271 261 272 printf("fcntl F_GETLK should return -1\n"); … … 364 375 } 365 376 377 printf( "Send seekdir a NULL pointer\n"); 366 378 seekdir( NULL, off ); 367 379 -
testsuites/psxtests/psxreaddir/test.c
r5f2566b r3251b55 20 20 * $Id$ 21 21 */ 22 22 23 #include <stdio.h> 23 24 #include <sys/types.h> … … 247 248 assert( status == 1 ); 248 249 250 #if 0 249 251 printf("fcntl F_DUPFD should return 0\n"); 250 252 status = fcntl( fd, F_DUPFD, 0 ); 251 253 assert ( status == 0 ); 252 253 printf("fcntl F_GETFL should return -1\n"); 254 #else 255 printf("fcntl F_DUPFD should return 0 -- skip until implemented\n"); 256 #endif 257 258 printf("fcntl F_GETFL returns current flags\n"); 254 259 status = fcntl( fd, F_GETFL, 1 ); 255 assert ( status == -1 ); 256 257 printf("fcntl F_SETFL should return -1\n"); 258 status = fcntl( fd, F_SETFL, 1 ); 259 assert ( status == -1 ); 260 printf("fcntl F_GETFL returned 0x%x\n", status ); 261 assert( status != -1 ); 262 263 printf("fcntl F_SETFL to add O_APPEND and O_NONBLOCK\n"); 264 status = fcntl( fd, F_SETFL, O_APPEND|O_NONBLOCK ); 265 assert ( status != -1 ); 266 267 printf("fcntl F_GETFL return current flags to see changes\n"); 268 status = fcntl( fd, F_GETFL, 1 ); 269 printf("fcntl F_GETFL returned 0x%x\n", status ); 270 assert( status != -1 ); 260 271 261 272 printf("fcntl F_GETLK should return -1\n"); … … 364 375 } 365 376 377 printf( "Send seekdir a NULL pointer\n"); 366 378 seekdir( NULL, off ); 367 379
Note: See TracChangeset
for help on using the changeset viewer.