Dave Shield wrote:
On Thu, 2005-11-24 at 16:23 +0100, Thomas Anders wrote:
according to Dave's testing with CVS MAIN on HP-UX 10.20, test #58 (snmpwalk) fails against an agent that's running as non-root (as is typically the case during "make test"), but succeeds when the agent is running as root. (BTW, the same holds true for the snmpnetstat test.)

I don't consider this ideal behaviour. I guess that we fail to properly catch an error somewhere or need to apply some #ifdef NO_ROOT_ACCESS logic.

I've just submitted a patch to skip these particular tests if
'id -u' doesn't return 0.  Currently this only applies for HP-UX
kit, but the same thing may be applicable on other systems too.

This may be fine for the snmpnetstat test, but I'm not convinced this is the Right Thing To Do for the snmpwalk test.

IIUC (and I don't have access to a HP-UX system to verify) a full snmpwalk against an agent running as non-root on HP-UX 10.20 hangs/crashes(?) the agent. If so, then wouldn't *this* be the problem that needs to be fixed, rather than skipping the test that reports the failure? Or am I missing something here?


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to