Fix the loop test
Fails in koji as the build machine must be slower. Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
3345de3561
commit
39294f20ae
13
0001-fix-loop-test.patch
Normal file
13
0001-fix-loop-test.patch
Normal file
@ -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);
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user