Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
1f311bbc
Commit
1f311bbc
authored
Oct 18, 2011
by
Tomek Mrugalski
🛰
Browse files
3 libdhcp tests disabled (workaround for Solaris10 SIGBUS problem)
Those tests will be reenabled once
#1313
is implemented.
parent
fb49d74d
Changes
4
Show whitespace changes
Inline
Side-by-side
src/lib/dhcp/option6_ia.cc
View file @
1f311bbc
...
...
@@ -84,6 +84,10 @@ Option6IA::unpack(const boost::shared_array<uint8_t>& buf,
if
(
parse_len
<
OPTION6_IA_LEN
||
offset
+
OPTION6_IA_LEN
>
buf_len
)
{
isc_throw
(
OutOfRange
,
"Option "
<<
type_
<<
" truncated"
);
}
/// TODO this will cause SIGBUS on sparc if we happen to read misaligned
/// memory access. We need to fix this (and similar code) as part of
/// the ticket #1313
iaid_
=
ntohl
(
*
(
uint32_t
*
)
&
buf
[
offset
]);
offset
+=
sizeof
(
uint32_t
);
t1_
=
ntohl
(
*
(
uint32_t
*
)
&
buf
[
offset
]);
...
...
src/lib/dhcp/tests/option6_ia_unittest.cc
View file @
1f311bbc
...
...
@@ -132,7 +132,8 @@ TEST_F(Option6IATest, simple) {
}
// test if option can build suboptions
TEST_F
(
Option6IATest
,
suboptions_pack
)
{
/// TODO Reenable once ticket #1313 is implemented
TEST_F
(
Option6IATest
,
DISABLED_suboptions_pack
)
{
boost
::
shared_array
<
uint8_t
>
buf
(
new
uint8_t
[
128
]);
for
(
int
i
=
0
;
i
<
128
;
i
++
)
buf
[
i
]
=
0
;
...
...
src/lib/dhcp/tests/option6_iaaddr_unittest.cc
View file @
1f311bbc
...
...
@@ -34,7 +34,8 @@ public:
}
};
TEST_F
(
Option6IAAddrTest
,
basic
)
{
/// TODO reenable this once ticket #1313 is implemented.
TEST_F
(
Option6IAAddrTest
,
DISABLED_basic
)
{
boost
::
shared_array
<
uint8_t
>
simple_buf
(
new
uint8_t
[
128
]);
for
(
int
i
=
0
;
i
<
128
;
i
++
)
...
...
src/lib/dhcp/tests/pkt6_unittest.cc
View file @
1f311bbc
...
...
@@ -85,7 +85,8 @@ Pkt6 *capture1() {
return
(
pkt
);
}
TEST_F
(
Pkt6Test
,
unpack_solicit1
)
{
/// TODO Reenable this once ticket #1313 is implemented
TEST_F
(
Pkt6Test
,
DISABLED_unpack_solicit1
)
{
Pkt6
*
sol
=
capture1
();
ASSERT_EQ
(
true
,
sol
->
unpack
());
...
...
Write
Preview
Markdown
is supported
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