Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/tests/modules Don't forget to increment loop contr...



details:   https://anonhg.NetBSD.org/src/rev/d935219c60f6
branches:  pgoyette-compat
changeset: 830619:d935219c60f6
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Sep 05 23:38:40 2018 +0000

description:
Don't forget to increment loop control - avoid infinite iteration

diffstat:

 tests/modules/t_builtin.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 57c2d97b6a64 -r d935219c60f6 tests/modules/t_builtin.c
--- a/tests/modules/t_builtin.c Wed Sep 05 23:06:08 2018 +0000
+++ b/tests/modules/t_builtin.c Wed Sep 05 23:38:40 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_builtin.c,v 1.3.12.2 2018/09/05 23:06:08 pgoyette Exp $      */
+/*     $NetBSD: t_builtin.c,v 1.3.12.3 2018/09/05 23:38:40 pgoyette Exp $      */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.  All rights reserved.
@@ -176,6 +176,9 @@
                        found = true;
                        break;
                }
+               ms++;
+               count--;
+
        }
        ATF_REQUIRE(found);
 }



Home | Main Index | Thread Index | Old Index