This repository was archived by the owner on Oct 24, 2023. It is now read-only.
File tree 3 files changed +37
-3
lines changed
3 files changed +37
-3
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ pull_request :
4
+
5
+ env :
6
+ CARGO_TERM_COLOR : always
7
+ RUST_BACKTRACE : full
8
+
9
+ jobs :
10
+ build :
11
+ strategy :
12
+ matrix :
13
+ os : [ ubuntu-18.04, macos-10.15 ]
14
+ profile : [ Release ]
15
+ name : build-${{ matrix.os }}-${{ matrix.profile }}
16
+ runs-on : ${{ matrix.os }}
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+
20
+ - name : Configure
21
+ run : |
22
+ mkdir -p _build
23
+ cmake -B _build -S . \
24
+ -DCMAKE_BUILD_TYPE=${{ matrix.profile }} \
25
+ -DBUILD_AND_INSTALL_CHECK=yes
26
+
27
+ - name : Build
28
+ run : |
29
+ cmake --build _build
30
+
31
+ - name : Test
32
+ run : |
33
+ cmake --build _build --target test
34
+ env :
35
+ CTEST_OUTPUT_ON_FAILURE : 1
Original file line number Diff line number Diff line change @@ -128,7 +128,6 @@ START_TEST(test_read_blocking)
128
128
pthread_join (thread , NULL );
129
129
130
130
ck_assert_int_ge (duration_us (& duration ), SLEEP_TIME - TOLERANCE_UNDER );
131
- ck_assert_int_le (duration_us (& duration ), SLEEP_TIME + TOLERANCE_OVER );
132
131
133
132
ck_assert_str_eq (write_message , read_message );
134
133
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ _incr_cb(void *v)
42
42
43
43
START_TEST (test_timing_wheel_basic )
44
44
{
45
- #define TICK_NS 1000000
45
+ #define TICK_NS 100000000
46
46
#define NSLOT 3
47
47
#define NTICK 2
48
48
@@ -182,7 +182,7 @@ END_TEST
182
182
183
183
START_TEST (test_timing_wheel_edge_case )
184
184
{
185
- #define TICK_NS 1000000
185
+ #define TICK_NS 100000000
186
186
#define NSLOT 3
187
187
#define NTICK 2
188
188
You can’t perform that action at this time.
0 commit comments