Commit 765e6a19 authored by Michael Davis's avatar Michael Davis Committed by Cedric Caffy
Browse files

[LTO_RAO] Fixes unit tests

parent 0b2b0c40
...@@ -1018,13 +1018,13 @@ namespace unitTests { ...@@ -1018,13 +1018,13 @@ namespace unitTests {
ASSERT_EQ(0x1, requestSenseData.DRVSRVC); ASSERT_EQ(0x1, requestSenseData.DRVSRVC);
ASSERT_EQ("", castor::tape::SCSI::Structures::toString(requestSenseData.volumeLabel)); ASSERT_EQ("", castor::tape::SCSI::Structures::toString(requestSenseData.volumeLabel));
inqBuff[22] = 'V'; buff[22] = 'V';
inqBuff[23] = 'O'; buff[23] = 'O';
inqBuff[24] = 'L'; buff[24] = 'L';
inqBuff[25] = 'U'; buff[25] = 'U';
inqBuff[26] = 'M'; buff[26] = 'M';
inqBuff[27] = 'E'; buff[27] = 'E';
inqBuff[28] = '1'; buff[28] = '1';
ASSERT_EQ("VOLUME1", castor::tape::SCSI::Structures::toString(requestSenseData.volumeLabel)); ASSERT_EQ("VOLUME1", castor::tape::SCSI::Structures::toString(requestSenseData.volumeLabel));
ASSERT_EQ(0, requestSenseData.physicalWrap); ASSERT_EQ(0, requestSenseData.physicalWrap);
...@@ -1121,35 +1121,35 @@ namespace unitTests { ...@@ -1121,35 +1121,35 @@ namespace unitTests {
ASSERT_EQ(0x6E, requestSenseData.LPOSRegion); ASSERT_EQ(0x6E, requestSenseData.LPOSRegion);
ASSERT_EQ("", castor::tape::SCSI::Structures::toString(requestSenseData.ERPSummaryInformation)); ASSERT_EQ("", castor::tape::SCSI::Structures::toString(requestSenseData.ERPSummaryInformation));
inqBuff[70] = 'E'; buff[70] = 'E';
inqBuff[71] = 'R'; buff[71] = 'R';
inqBuff[72] = 'P'; buff[72] = 'P';
inqBuff[73] = 'S'; buff[73] = 'S';
inqBuff[74] = 'U'; buff[74] = 'U';
inqBuff[75] = 'M'; buff[75] = 'M';
inqBuff[76] = 'M'; buff[76] = 'M';
inqBuff[77] = 'A'; buff[77] = 'A';
inqBuff[78] = 'R'; buff[78] = 'R';
inqBuff[79] = 'Y'; buff[79] = 'Y';
inqBuff[80] = 'I'; buff[80] = 'I';
inqBuff[81] = 'N'; buff[81] = 'N';
inqBuff[82] = 'F'; buff[82] = 'F';
inqBuff[83] = 'O'; buff[83] = 'O';
inqBuff[84] = 'R'; buff[84] = 'R';
inqBuff[85] = 'M'; buff[85] = 'M';
ASSERT_EQ("ERPSUMMARYINFORM", castor::tape::SCSI::Structures::toString(requestSenseData.ERPSummaryInformation)); ASSERT_EQ("ERPSUMMARYINFORM", castor::tape::SCSI::Structures::toString(requestSenseData.ERPSummaryInformation));
ASSERT_EQ("", castor::tape::SCSI::Structures::toString(requestSenseData.cartridgeSerialNumber)); ASSERT_EQ("", castor::tape::SCSI::Structures::toString(requestSenseData.cartridgeSerialNumber));
inqBuff[86] = 'C'; buff[86] = 'C';
inqBuff[87] = 'A'; buff[87] = 'A';
inqBuff[88] = 'R'; buff[88] = 'R';
inqBuff[89] = 'T'; buff[89] = 'T';
inqBuff[90] = 'R'; buff[90] = 'R';
inqBuff[91] = 'I'; buff[91] = 'I';
inqBuff[92] = 'D'; buff[92] = 'D';
inqBuff[93] = 'G'; buff[93] = 'G';
inqBuff[94] = 'E'; buff[94] = 'E';
inqBuff[95] = '1'; buff[95] = '1';
ASSERT_EQ("CARTRIDGE1", castor::tape::SCSI::Structures::toString(requestSenseData.cartridgeSerialNumber)); ASSERT_EQ("CARTRIDGE1", castor::tape::SCSI::Structures::toString(requestSenseData.cartridgeSerialNumber));
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment