Hi folks.

I'm just fiddling around with Perl module that comes bundled with net-snmp-5.4.2.1 on my FreeBSD box and it turned out that bulkwalk.t test fails on checking a loopback intereface, as it expects it to be the first on interface list, while on FreeBSD it is actually the last one listed.

I'm sending you in attachement a patch to fix this issue as I don't have an account of SF to fill in proper report to the project tracker.

Although the patch is against version shipped with 5.4.2.1 it should be valid with recent SVN version as well as the file had not change since that release (according to ViewVC information on SF).

PS. Please, CC me as I'm not subscribed to the list.
--
Cezary Morga
--- perl/SNMP/t/bulkwalk.t.orig 2006-11-14 00:50:20.000000000 +0100
+++ perl/SNMP/t/bulkwalk.t      2009-07-15 09:14:51.000000000 +0200
@@ -120,6 +120,9 @@
     # IRIX/HP-UX may have lo0 at the *end* of the interface list,
     # so just check for a non-empty string
     ok(($loopback ne ''));
+  } elsif ($^O eq 'freebsd') {
+    $loopback = $list[3][-1]->val;
+    ok(($loopback =~ /^lo/));
   } else {
     ok(($loopback =~ /^lo/));
   }
@@ -301,6 +304,9 @@
         # IRIX/HP-UX may have lo0 at the *end* of the interface list,
         # so just check for a non-empty string
         ok(($vbr->val ne ''));
+      } elsif ($^O eq 'freebsd') {
+        $vbr = $list->[3][-1];
+        ok(($vbr->val =~ /^lo/));
       } else {
         ok(($vbr->val =~ /^lo/));
       }
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to