]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
3 libdhcp tests disabled (workaround for Solaris10 SIGBUS problem)
authorTomek Mrugalski <tomasz@isc.org>
Tue, 18 Oct 2011 13:05:35 +0000 (15:05 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 18 Oct 2011 13:05:35 +0000 (15:05 +0200)
Those tests will be reenabled once #1313 is implemented.

src/lib/dhcp/option6_ia.cc
src/lib/dhcp/tests/option6_ia_unittest.cc
src/lib/dhcp/tests/option6_iaaddr_unittest.cc
src/lib/dhcp/tests/pkt6_unittest.cc

index 350b32e78873255a40c5ee91011c2fe3bc89e3a3..2b8e8d65d1fd489be3b07c05dd2ff10858cffa6f 100644 (file)
@@ -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]);
index ac4127ac1b398de56cdefcb66ac1d4e56cda5275..00ffa372ed0df3183e678507b6e907ed5d4381d5 100644 (file)
@@ -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;
index f92304ef56bdc67dd2ca0682580c9260510f7d93..d9e0e91cc0256d5fff863abc15c8b765123c067b 100644 (file)
@@ -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++)
index 2819f7dfdb155f64c0498a09f6082a5ecbe1bd0f..7a39ec188136f6bc4b9e4eab2366390dfe873dd3 100644 (file)
@@ -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());