internal/rosa: fix GNU testsuite edge case

For segments with a single test.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-07-12 22:37:57 +09:00
parent 8facae53c7
commit 316edeb17b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ func skipGNUTests(tests ...int64) string {
buf.WriteString(strconv.Itoa(int(n - 1)))
buf.WriteString(" ")
}
if i == len(tests)-1 || tests[i+1] != n+1 {
if i == len(tests)-1 || (tests[i+1] != n+1 && tests[i+1] != n+2) {
buf.WriteString(strconv.Itoa(int(n + 1)))
buf.WriteString("-")
}