mirror of https://github.com/akuker/RASCSI.git
DiskCache needs a size
otherwise its constructor assertion (block > 0) will fail. Fixes #1418 Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
This commit is contained in:
parent
7a986c84aa
commit
dbc986b199
|
@ -140,6 +140,11 @@ TEST(ScsiCdTest, ModeSelect)
|
||||||
vector<int> cmd(6);
|
vector<int> cmd(6);
|
||||||
vector<uint8_t> buf(255);
|
vector<uint8_t> buf(255);
|
||||||
|
|
||||||
|
path filename = CreateTempFile(2* 2048);
|
||||||
|
cd.SetFilename(string(filename));
|
||||||
|
cd.Open();
|
||||||
|
EXPECT_EQ(2, cd.GetBlockCount());
|
||||||
|
|
||||||
cd.SetSectorSizeInBytes(2048);
|
cd.SetSectorSizeInBytes(2048);
|
||||||
|
|
||||||
// PF
|
// PF
|
||||||
|
|
Loading…
Reference in New Issue