1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Reset the simulated device in the test harness to its default

configuration whenever it is restarted.

FossilOrigin-Name: 562d20e662da474ea326165730ecfdfcf9b414ee
This commit is contained in:
drh
2010-04-12 14:51:10 +00:00
parent 91781bd72f
commit 47f18f7294
3 changed files with 14 additions and 10 deletions

View File

@@ -346,9 +346,13 @@ void devsym_register(int iDeviceChar, int iSectorSize){
}
if( iDeviceChar>=0 ){
g.iDeviceChar = iDeviceChar;
}else{
g.iDeviceChar = 0;
}
if( iSectorSize>=0 ){
g.iSectorSize = iSectorSize;
}else{
g.iSectorSize = 512;
}
}