[ltt-dev] [UST PATCH] Fix bug in test_functions.sh

Nils Carlson nils.carlson at ericsson.com
Tue Sep 21 07:54:04 EDT 2010


As we were playing with OPTIND we managed to match the same
thing multiple times. Maybe make this more elegant in the
future.

Signed-off-by: Nils Carlson <nils.carlson at ericsson.com>
---
 tests/test_functions.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/test_functions.sh b/tests/test_functions.sh
index d27a734..40d4d89 100644
--- a/tests/test_functions.sh
+++ b/tests/test_functions.sh
@@ -40,6 +40,7 @@ function check_trace_logs() {
 
 
 function trace_matches() {
+    local OPTIND=
 
     RUNLTTV=~/devel/lttv/runlttv
 
-- 
1.7.1





More information about the lttng-dev mailing list