Skip to content

Commit

Permalink
DiskCache needs a size
Browse files Browse the repository at this point in the history
otherwise its constructor assertion (block > 0) will fail.

Fixes #1418

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
  • Loading branch information
kkaempf authored and rdmark committed Jan 18, 2024
1 parent 818addb commit 7cc8df2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpp/test/scsicd_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7cc8df2

Please sign in to comment.