From 7d1e3a6723dcea9e6dcdc0641a90082e1db996a9 Mon Sep 17 00:00:00 2001 From: Michael Haberler Date: Sun, 9 Aug 2015 21:39:18 +0000 Subject: [PATCH] regressions/ck_cohort: make it pass with CORES=1 --- regressions/ck_cohort/validate/validate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regressions/ck_cohort/validate/validate.c b/regressions/ck_cohort/validate/validate.c index c2453c4..cffbf77 100644 --- a/regressions/ck_cohort/validate/validate.c +++ b/regressions/ck_cohort/validate/validate.c @@ -160,7 +160,8 @@ main(int argc, char *argv[]) n_cohorts = atoi(argv[1]); if (n_cohorts <= 0) { - ck_error("ERROR: Number of cohorts must be greater than 0\n"); + fprintf(stderr, "setting number of cohorts per thread to 1\n"); + n_cohorts = 1; } threads_per_cohort = atoi(argv[2]);