From 3bed8b03d4cc0b2a4dc548073b988f1e8367cfc8 Mon Sep 17 00:00:00 2001 From: mreed10 Date: Mon, 10 Jul 2006 15:46:10 +0000 Subject: A fix Submitted by Andy Echols to fix an infinite loop problem that occurs in pan if runltp tries to run a test that isn't present. --- pan/pan.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'pan') diff --git a/pan/pan.c b/pan/pan.c index 2c53a6ee5..c4b5f7250 100644 --- a/pan/pan.c +++ b/pan/pan.c @@ -45,7 +45,7 @@ * 01/29/03 - Added: Manoj Iyer, manjo@mail.utexas.edu * - added code supresses test start and test end tags. */ -/* $Id: pan.c,v 1.22 2006/02/16 05:56:51 vapier Exp $ */ +/* $Id: pan.c,v 1.23 2006/07/10 15:46:10 mreed10 Exp $ */ #include #include @@ -457,11 +457,10 @@ main(int argc, char **argv) } cpid = run_child(coll->ary[c], running + i, quiet_mode); - if (cpid != -1) { + if (cpid != -1) ++num_active; - if (starts > 0) - --starts; - } + if ((cpid != -1 || sequential) && starts > 0) + --starts; if (sequential) if (++c >= coll->cnt) -- cgit v1.2.3