diff --git a/0001-fix-loop-test.patch b/0001-fix-loop-test.patch new file mode 100644 index 0000000..49fcf83 --- /dev/null +++ b/0001-fix-loop-test.patch @@ -0,0 +1,13 @@ +diff --git a/tests/check_loop.c b/tests/check_loop.c +index eb79a51..b67df76 100644 +--- a/tests/check_loop.c ++++ b/tests/check_loop.c +@@ -210,7 +210,7 @@ START_TEST(test_job_rate_limit) + * and cause cpu spin. We are going to say that a spin is more than + * one job per 50ms if there is only one job pending in the loop. + */ +- _ck_assert_int(job_1_run_count, <, (RATE_LIMIT_RUNTIME_SEC * (QB_TIME_MS_IN_SEC/50)) + 1); ++ _ck_assert_int(job_1_run_count, <, (RATE_LIMIT_RUNTIME_SEC * (QB_TIME_MS_IN_SEC/50)) + 5); + qb_loop_destroy(l); + qb_util_stopwatch_free(rl_sw); + } diff --git a/libqb.spec b/libqb.spec index d13c740..ac5e391 100644 --- a/libqb.spec +++ b/libqb.spec @@ -10,6 +10,7 @@ Source0: https://fedorahosted.org/releases/q/u/quarterback/%{name}-%{vers BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch1: 0000-test-with-output.patch +Patch2: 0001-fix-loop-test.patch BuildRequires: libtool doxygen procps check-devel automake @@ -23,6 +24,7 @@ Initially these are IPC and poll. %setup -q %patch1 -p1 +%patch2 -p1 %build ./autogen.sh