diff --git a/cpp/test/mocks.h b/cpp/test/mocks.h index f7b9bf6d..e8e54141 100644 --- a/cpp/test/mocks.h +++ b/cpp/test/mocks.h @@ -447,7 +447,6 @@ class MockTape : public Tape { FRIEND_TEST(TapeTest, ValidateFile); FRIEND_TEST(TapeTest, SetUpModePages); - FRIEND_TEST(TapeTest, ReadData); FRIEND_TEST(TapeTest, Unload); public: diff --git a/cpp/test/tape_test.cpp b/cpp/test/tape_test.cpp index 8921053f..556c63f7 100644 --- a/cpp/test/tape_test.cpp +++ b/cpp/test/tape_test.cpp @@ -104,25 +104,6 @@ TEST(TapeTest, Open) EXPECT_NO_THROW(tape.Open()); } -TEST(TapeTest, ReadData) -{ - vector buf(1); - MockTape tape(0); - - tape.SetReady(true); - tape.SetBlockCount(1); - auto filename = CreateTempFile(1, "tap"); - tape.SetFilename(filename.string()); - tape.ValidateFile(); - EXPECT_THROW(tape.ReadData(buf), scsi_exception); - - tape.CleanUp(); - filename = CreateTempFile(1, "tar"); - tape.SetFilename(filename.string()); - tape.ValidateFile(); - EXPECT_NO_THROW(tape.ReadData(buf)); -} - TEST(TapeTest, Unload) { MockTape tape(0);