aboutsummaryrefslogtreecommitdiffstats
path: root/xtest.c
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 /xtest.c
parentEmpty signed commit (diff)
downloadxtest-2.1.2.tar.gz
xtest-2.1.2.tar.bz2
xtest-2.1.2.tar.xz
Fix double output bug2.1.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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;
}
}
}