kloczek / rpms / net-snmp

Forked from rpms/net-snmp 6 years ago
Clone
19da4b8
Source: upstream, SVN rev. 18090
19da4b8
19da4b8
Fix the test suite - /var/run/net-snmp does not exist at the time
19da4b8
'make test' is running. So we need another place to put temporary
19da4b8
files - let it be /tmp. SELinux allows it, snmpd during tests is
19da4b8
unconfined.
19da4b8
19da4b8
diff -up net-snmp-5.5/testing/tests/T059trapdtraphandle.orig net-snmp-5.5/testing/tests/T059trapdtraphandle
19da4b8
--- net-snmp-5.5/testing/tests/T059trapdtraphandle.orig	2007-12-19 23:31:28.000000000 +0100
19da4b8
+++ net-snmp-5.5/testing/tests/T059trapdtraphandle	2010-01-29 19:57:30.000000000 +0100
19da4b8
@@ -22,6 +22,7 @@ snmp_version=v2c
19da4b8
 TESTCOMMUNITY=testcommunity
19da4b8
 
19da4b8
 CONFIGTRAPD [snmp] persistentDir $SNMP_TMP_PERSISTENTDIR
19da4b8
+CONFIGTRAPD [snmp] tempFilePattern /tmp/snmpd-tmp-XXXXXX
19da4b8
 CONFIGTRAPD authcommunity execute $TESTCOMMUNITY
19da4b8
 CONFIGTRAPD doNotLogTraps true
19da4b8
 CONFIGTRAPD traphandle default $0 $1 traphandle