aboutsummaryrefslogtreecommitdiff
path: root/pan
diff options
context:
space:
mode:
authormreed10 <mreed10>2006-07-10 15:46:10 +0000
committermreed10 <mreed10>2006-07-10 15:46:10 +0000
commit3bed8b03d4cc0b2a4dc548073b988f1e8367cfc8 (patch)
tree550ec212356efd50e50a493e3c91fdf5db717a16 /pan
parentc0363b22d53118d0161ecc5e53ff666c86d45387 (diff)
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.
Diffstat (limited to 'pan')
-rw-r--r--pan/pan.c9
1 files changed, 4 insertions, 5 deletions
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 <errno.h>
#include <string.h>
@@ -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)