Skip to content

Commit 625c0bb

Browse files
committed
Add nocov to the hard-to-test branch
Currently, the condition is only encountered during thread contention, which is prohibitively expensive to test or at least requires non-portable tricks.
1 parent a78e873 commit 625c0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static void flush(void) {
128128
if (!retgrp) return;
129129
int me = omp_get_thread_num();
130130
int n = gs_thread_n[me];
131-
if (!n) return;
131+
if (!n) return; // # nocov
132132
int newn = gs_n + n;
133133
if (gs_alloc < newn) {
134134
gs_alloc = (newn < nrow/3) ? (1+(newn*2)/4096)*4096 : nrow;

0 commit comments

Comments
 (0)