aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-06-25 16:02:09 +0200
committerMattias Andrée <maandree@kth.se>2024-06-25 16:02:09 +0200
commit218c056552282246dccf9c37eed78c5056ed5a35 (patch)
treef4a7842b58399a77bc6ae197bb733be875b28da5
parentEmpty signed commit (diff)
downloadxtest-218c056552282246dccf9c37eed78c5056ed5a35.tar.gz
xtest-218c056552282246dccf9c37eed78c5056ed5a35.tar.bz2
xtest-218c056552282246dccf9c37eed78c5056ed5a35.tar.xz
Fix double output bug2.1.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--xtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtest.c b/xtest.c
index ce4dfda..7a45089 100644
--- a/xtest.c
+++ b/xtest.c
@@ -86,14 +86,14 @@ test(char *s)
if ((pos_tests & j) && testmap[i](s)) {
printf("%s%c", s, delim);
fflush(stdout);
- break;
+ return;
}
}
for (i = 0; j = 1L << i, j <= neg_tests; i++) {
if ((neg_tests & j) && !testmap[i](s)) {
printf("%s%c", s, delim);
fflush(stdout);
- break;
+ return;
}
}
}