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:
Klaus Kämpf 2024-01-17 14:16:50 +01:00 committed by Daniel Markstedt
parent 818addb0e0
commit 7cc8df271c

View File

@ -140,6 +140,11 @@ TEST(ScsiCdTest, ModeSelect)
vector<int> cmd(6);
vector<uint8_t> buf(255);
path filename = CreateTempFile(2* 2048);
cd.SetFilename(string(filename));
cd.Open();
EXPECT_EQ(2, cd.GetBlockCount());
cd.SetSectorSizeInBytes(2048);
// PF