mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 08:29:59 +00:00
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
818addb0e0
commit
7cc8df271c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user