12 Create1=E:\Robustness0.db |
12 Create1=E:\Robustness0.db |
13 Exec2=Create Table Sometable(Someint int primary key, Somereal real, Sometext text); |
13 Exec2=Create Table Sometable(Someint int primary key, Somereal real, Sometext text); |
14 // Add a small amount of data and check it. |
14 // Add a small amount of data and check it. |
15 NewBlock3=AddBlock10-1 |
15 NewBlock3=AddBlock10-1 |
16 NewBlock4=CheckBlock10-1 |
16 NewBlock4=CheckBlock10-1 |
17 // Fill the disk to within 100K of full. First fill to within 150k so we have |
17 // Fill the disk to within 100K of full. First fill to within 160k so we have |
18 // an easy way of quickly getting 50K of disk back - by deleting 'fillfile'. |
18 // an easy way of quickly getting 60K of disk back - by deleting 'fillfile'. |
19 NewBlock5=FillDisk150K |
19 NewBlock5=FillDisk160K |
20 NewBlock6=FillDisk100K |
20 NewBlock6=FillDisk100K |
21 |
21 |
22 NoOperation7= |
22 NoOperation7= |
23 // Fill the disk until an out of disk error occurs. Then close the |
23 // Fill the disk until an out of disk error occurs. Then close the |
24 // database because once it's reported a disk full error all bets are off.. |
24 // database because once it's reported a disk full error all bets are off.. |
25 NewBlock8=FillDisk1 |
25 NewBlock8=FillDisk1 |
26 Close9= |
26 Close9= |
27 |
27 |
28 // This will return things to 50K of disk free (because we filled to 150K, |
28 // This will return things to 60K of disk free (because we filled to 160K, |
29 // then to 100K with this file). |
29 // then to 100K with this file). |
30 Delete10=E:\fillfile.txt |
30 Delete10=E:\fillfile.txt |
31 |
31 |
32 // Re-open the database. This is the point of the test - the database should |
32 // Re-open the database. This is the point of the test - the database should |
33 // still be usable. |
33 // still be usable. |
122 Function0=NearFillDisk |
122 Function0=NearFillDisk |
123 FillFile=E:\fillfile4M.txt |
123 FillFile=E:\fillfile4M.txt |
124 DiskFree=4194304 |
124 DiskFree=4194304 |
125 EndBlock1= |
125 EndBlock1= |
126 |
126 |
127 // Fill the disk to within 150K of full. |
127 // Fill the disk to within 160K of full. |
128 [FillDisk150K] |
128 [FillDisk160K] |
129 Function0=NearFillDisk |
129 Function0=NearFillDisk |
130 FillFile=E:\fillfile2.txt |
130 FillFile=E:\fillfile2.txt |
131 DiskFree=153600 |
131 DiskFree=168960 |
132 EndBlock1= |
132 EndBlock1= |
133 |
133 |
134 // Fill the disk to within 100K of full. |
134 // Fill the disk to within 100K of full. |
135 [FillDisk100K] |
135 [FillDisk100K] |
136 Function0=NearFillDisk |
136 Function0=NearFillDisk |
296 |
296 |
297 Exec6=Attach "E:\Robustness3.db" as TheAttached; |
297 Exec6=Attach "E:\Robustness3.db" as TheAttached; |
298 Exec7=Create Table TheAttached.Sometable(Someint int, Somereal real, Sometext text); |
298 Exec7=Create Table TheAttached.Sometable(Someint int, Somereal real, Sometext text); |
299 |
299 |
300 // Fill the disk to within 100K of full (with a file..) |
300 // Fill the disk to within 100K of full (with a file..) |
301 NewBlock8=FillDisk150K |
301 NewBlock8=FillDisk160K |
302 NewBlock9=FillDisk100K |
302 NewBlock9=FillDisk100K |
303 |
303 |
304 // Fill up the drive with the attached database, first with big records, |
304 // Fill up the drive with the attached database, first with big records, |
305 // then small. |
305 // then small. |
306 NewBlock10=FillDisk1 |
306 NewBlock10=FillDisk1 |
328 // Verify the attached db is locked. |
328 // Verify the attached db is locked. |
329 Delete22=E:\Robustness3.db |
329 Delete22=E:\Robustness3.db |
330 ExpectedError22=KErrInUse |
330 ExpectedError22=KErrInUse |
331 |
331 |
332 // Beyond this point we can't expect anything to work (necessarily) because |
332 // Beyond this point we can't expect anything to work (necessarily) because |
333 // there isn't any disk space left. So grab free off 50K to make sure |
333 // there isn't any disk space left. So grab free off 60K to make sure |
334 // (the fill to within 100K of full file which was created after filling |
334 // (the fill to within 100K of full file which was created after filling |
335 // to within 150K of full). |
335 // to within 160K of full). |
336 Delete23=E:\fillfile.txt |
336 Delete23=E:\fillfile.txt |
337 NoOperation24= |
337 NoOperation24= |
338 NoOperation25= |
338 NoOperation25= |
339 |
339 |
340 // The number of lines common to both tables is highly dependent on exactly |
340 // The number of lines common to both tables is highly dependent on exactly |