Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
db8039fe
Commit
db8039fe
authored
Nov 26, 2013
by
Eric Cano
Browse files
Changed the type of constants in an attempt to get code compile on 32bits machines.
parent
29467693
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/Drive/DriveTest.cpp
View file @
db8039fe
...
...
@@ -272,10 +272,10 @@ TEST(castor_tape_drives_Drive, getCompressionAndClearCompressionStats) {
EXPECT_CALL
(
sysWrapper
,
ioctl
(
_
,
_
,
An
<
sg_io_hdr_t
*>
())).
Times
(
1
);
comp
=
drive
->
getCompression
();
ASSERT_EQ
(
0xABCDEF1122334455U
,
comp
.
fromHost
);
ASSERT_EQ
(
0x2233445566778899U
,
comp
.
toHost
);
ASSERT_EQ
(
0x99AABBCCDDEEFF11U
,
comp
.
fromTape
);
ASSERT_EQ
(
0x1122334455667788U
,
comp
.
toTape
);
ASSERT_EQ
(
0xABCDEF1122334455U
LL
,
comp
.
fromHost
);
ASSERT_EQ
(
0x2233445566778899U
LL
,
comp
.
toHost
);
ASSERT_EQ
(
0x99AABBCCDDEEFF11U
LL
,
comp
.
fromTape
);
ASSERT_EQ
(
0x1122334455667788U
LL
,
comp
.
toTape
);
EXPECT_CALL
(
sysWrapper
,
ioctl
(
_
,
_
,
An
<
sg_io_hdr_t
*>
())).
Times
(
1
);
drive
->
clearCompressionStats
();
...
...
@@ -294,10 +294,10 @@ TEST(castor_tape_drives_Drive, getCompressionAndClearCompressionStats) {
EXPECT_CALL
(
sysWrapper
,
ioctl
(
_
,
_
,
An
<
sg_io_hdr_t
*>
())).
Times
(
1
);
comp
=
drive
->
getCompression
();
ASSERT_EQ
(
0x4488CD1000U
,
comp
.
fromHost
);
ASSERT_EQ
(
0x15599DE2000U
,
comp
.
toHost
);
ASSERT_EQ
(
0x377BBFC4400U
,
comp
.
fromTape
);
ASSERT_EQ
(
0x266AAEF3000U
,
comp
.
toTape
);
ASSERT_EQ
(
0x4488CD1000U
LL
,
comp
.
fromHost
);
ASSERT_EQ
(
0x15599DE2000U
LL
,
comp
.
toHost
);
ASSERT_EQ
(
0x377BBFC4400U
LL
,
comp
.
fromTape
);
ASSERT_EQ
(
0x266AAEF3000U
LL
,
comp
.
toTape
);
EXPECT_CALL
(
sysWrapper
,
ioctl
(
_
,
_
,
An
<
sg_io_hdr_t
*>
())).
Times
(
1
);
drive
->
clearCompressionStats
();
...
...
@@ -316,10 +316,10 @@ TEST(castor_tape_drives_Drive, getCompressionAndClearCompressionStats) {
EXPECT_CALL
(
sysWrapper
,
ioctl
(
_
,
_
,
An
<
sg_io_hdr_t
*>
())).
Times
(
1
);
comp
=
drive
->
getCompression
();
ASSERT_EQ
(
0x209DB2BE187D9U
,
comp
.
fromHost
);
ASSERT_EQ
(
0x105707026D088U
,
comp
.
toHost
);
ASSERT_EQ
(
0x928C54DFC8A11U
,
comp
.
fromTape
);
ASSERT_EQ
(
0xA2D3009B64262U
,
comp
.
toTape
);
ASSERT_EQ
(
0x209DB2BE187D9U
LL
,
comp
.
fromHost
);
ASSERT_EQ
(
0x105707026D088U
LL
,
comp
.
toHost
);
ASSERT_EQ
(
0x928C54DFC8A11U
LL
,
comp
.
fromTape
);
ASSERT_EQ
(
0xA2D3009B64262U
LL
,
comp
.
toTape
);
EXPECT_CALL
(
sysWrapper
,
ioctl
(
_
,
_
,
An
<
sg_io_hdr_t
*>
())).
Times
(
1
);
drive
->
clearCompressionStats
();
...
...
castor/tape/tapeserver/SCSI/StructuresTest.cpp
View file @
db8039fe
...
...
@@ -601,7 +601,7 @@ namespace UnitTests {
TEST
(
castor_tape_SCSI_Structures
,
toU64
)
{
unsigned
char
num
[
8
]
=
{
0xDE
,
0xAD
,
0xBE
,
0xEF
,
0xCA
,
0xFE
,
0xFA
,
0xDE
};
ASSERT_EQ
(
0xDEADBEEFCAFEFADEU
,
castor
::
tape
::
SCSI
::
Structures
::
toU64
(
num
));
ASSERT_EQ
(
0xDEADBEEFCAFEFADEU
LL
,
castor
::
tape
::
SCSI
::
Structures
::
toU64
(
num
));
}
TEST
(
castor_tape_SCSI_Structures
,
Exception
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment