[pso] [tema3 windows]test

Razvan Deaconescu razvand at cs.pub.ro
Sun May 11 01:01:17 EEST 2008


On Sat, 2008-05-10 at 13:51 -0700, Florin Antonescu wrote:
> Am modificat testul in felul urmator:
> in ssr_test_out_of_bounds am pus inainte de primul WriteFile:
> ssr_fill_fixed(buffer, SECTOR_SIZE, 0x01); si inainte de al doilea
> writeFile: ssr_fill_fixed(buffer, SECTOR_SIZE, 0x02); Am afisat in
> driver primii 4 octeti din bufferul primit:
> WRITE offset 99614208
> WRITE length 512
> 1
> 1
> 1
> 1
> WRITE offset 99614208
> WRITE length 512
> 2
> 2
> 2
> 2
> 
> Ce sa fac? Nu inteleg de ce se comporta astfel.

Adauga in test un apel SetFilePointer si pozitioneaza cursorul acolo
unde trebuie (adica exact la sfarsitul fisierului) inainte de ce de-al
doilea write. Poate nu se actualizeaza cum trebui cursorul de
fisier/disc.

Razvan



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the pso mailing list