monitoring-plugins/plugins/t
Mikael Falkvidd f54d10fe9b check_procs: Add delay after forking in test
Forking raises a race condition, where the parent might run the
test before the child has had time to fork. If that happens,
an error similar to this is produced:
 Failed test 'Output correct'
 at ./t/check_procs.t line 32.
                 'PROCS OK: 0 processes with args 'sleep 7' | processes=0;;;0;'
   doesn't match '/^PROCS OK: 1 process?/'

Sleeping a bit should avoid the problem. It might be enough to
sleep less than a second, but perl's built-in sleep function only
supports integer seconds.

In our build environment, the build failed 3 of 4 times before
this patch. After the patch it failed 0 of 7 times.

Signed-off-by: Mikael Falkvidd <mfalkvidd@op5.com>
2014-07-10 21:10:48 +02:00
..
check_apt_input Tests for check_apt 2012-10-03 15:54:24 -07:00
check_apt.t plugins/t/check_apt.t: Expect performance data 2013-08-17 21:52:50 +02:00
check_by_ssh.t check_by_ssh: tests expand key and config path 2013-09-17 11:34:06 +02:00
check_cluster.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_dbi.t t/check_dbi.t: Don't use 'INSERT … VALUES (a,b), (c,d)' with SQLite3. 2012-06-08 13:18:07 +02:00
check_dig.t Change default host names for some tests 2013-09-29 00:14:17 +02:00
check_disk.t Project rename initial commit. 2014-01-19 14:18:47 -05:00
check_dns.t tests: added check_dns performance data test 2014-06-28 22:05:25 +02:00
check_dummy.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_fping.t tests: fping checks require being root or setuid root 2014-06-13 15:23:18 +02:00
check_ftp.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_hpjd.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_http.t Merge branch 'maint' 2014-01-21 16:07:38 +01:00
check_imap.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_jabber.t check_jabber.t - fixed tests for new status output including hostname 2014-06-30 13:55:42 +02:00
check_load.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_mysql.t Clarify check_mysql test prompts 2014-01-28 02:35:09 -05:00
check_mysql_query.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_nagios.nagios1.status.log Support for Nagios 1 and Nagios 2 status files (Gerhard Lausser - 1296242) 2005-12-02 22:28:06 +00:00
check_nagios.nagios2.status.dat Support for Nagios 1 and Nagios 2 status files (Gerhard Lausser - 1296242) 2005-12-02 22:28:06 +00:00
check_nagios.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_ntp.t tests: always build and test on travis 2014-06-24 15:07:44 +02:00
check_ping.t check_ping: increase test timeout 2013-09-14 21:06:26 +02:00
check_pop.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_procs.t check_procs: Add delay after forking in test 2014-07-10 21:10:48 +02:00
check_smtp.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_snmp.t tests: always build and test on travis 2014-06-24 15:07:44 +02:00
check_ssh.t check_ssh: added test case 2013-09-17 12:13:51 +02:00
check_swap.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_tcp.t fixed tests when there is no direct internet connection 2013-12-27 01:14:50 +01:00
check_time.t Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_udp.t tests: always build and test on travis 2014-06-24 15:07:44 +02:00
check_users.t Trick for check_users test without users logged-in 2009-01-20 21:48:05 -05:00
negate.t Typo 2014-01-29 02:16:47 -05:00
NPTest.cache.travis tests: always build and test on travis 2014-06-24 15:07:44 +02:00