test/testfile.c
changeset 1454 07d2b0085ecd
parent 1453 2eb75f8a32ca
child 1484 b2b476a4a73c
equal deleted inserted replaced
1453:2eb75f8a32ca 1454:07d2b0085ecd
    47 
    47 
    48 /* test 1 : basic argument test: all those calls to SDL_RWFromFile should fail */
    48 /* test 1 : basic argument test: all those calls to SDL_RWFromFile should fail */
    49 	
    49 	
    50 	rwops = SDL_RWFromFile(NULL,NULL);
    50 	rwops = SDL_RWFromFile(NULL,NULL);
    51 	if (rwops) RWOP_ERR_QUIT(rwops);
    51 	if (rwops) RWOP_ERR_QUIT(rwops);
    52 	rwops = SDL_RWFromFile(NULL,"a+" WIN32_FILE_MODE);
    52 	rwops = SDL_RWFromFile(NULL,"ab+");
    53 	if (rwops) RWOP_ERR_QUIT(rwops);
    53 	if (rwops) RWOP_ERR_QUIT(rwops);
    54 	rwops = SDL_RWFromFile(NULL,"sldfkjsldkfj");
    54 	rwops = SDL_RWFromFile(NULL,"sldfkjsldkfj");
    55 	if (rwops) RWOP_ERR_QUIT(rwops);
    55 	if (rwops) RWOP_ERR_QUIT(rwops);
    56 	rwops = SDL_RWFromFile("something","");
    56 	rwops = SDL_RWFromFile("something","");
    57 	if (rwops) RWOP_ERR_QUIT(rwops);
    57 	if (rwops) RWOP_ERR_QUIT(rwops);