From 7cc8df271cfcfb5627d7ed7f7aa853c23acbfe01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Wed, 17 Jan 2024 14:16:50 +0100 Subject: [PATCH] DiskCache needs a size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit otherwise its constructor assertion (block > 0) will fail. Fixes #1418 Signed-off-by: Klaus Kämpf --- cpp/test/scsicd_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpp/test/scsicd_test.cpp b/cpp/test/scsicd_test.cpp index 4ebe3ce21c..dd4d39ea30 100644 --- a/cpp/test/scsicd_test.cpp +++ b/cpp/test/scsicd_test.cpp @@ -140,6 +140,11 @@ TEST(ScsiCdTest, ModeSelect) vector cmd(6); vector buf(255); + path filename = CreateTempFile(2* 2048); + cd.SetFilename(string(filename)); + cd.Open(); + EXPECT_EQ(2, cd.GetBlockCount()); + cd.SetSectorSizeInBytes(2048); // PF