Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
Squashed 'deps/ccommon/' changes from 9caf864d..cc7b9fc5
Browse files Browse the repository at this point in the history
cc7b9fc5 increase tick interval for cc_wheel tests (twitter#255)
9a3255dd Delete flaky assert within check_pipe (twitter#254)

git-subtree-dir: deps/ccommon
git-subtree-split: cc7b9fc5497347c911574f9a761317e300954f8f
  • Loading branch information
brayniac committed Oct 26, 2021
1 parent e196b0c commit b106c6c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full

jobs:
build:
strategy:
matrix:
os: [ ubuntu-18.04, macos-10.15 ]
profile: [ Release ]
name: build-${{ matrix.os }}-${{ matrix.profile }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

- name: Configure
run: |
mkdir -p _build
cmake -B _build -S . \
-DCMAKE_BUILD_TYPE=${{ matrix.profile }} \
-DBUILD_AND_INSTALL_CHECK=yes
- name: Build
run: |
cmake --build _build
- name: Test
run: |
cmake --build _build --target test
env:
CTEST_OUTPUT_ON_FAILURE: 1
1 change: 0 additions & 1 deletion test/channel/pipe/check_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ START_TEST(test_read_blocking)
pthread_join(thread, NULL);

ck_assert_int_ge(duration_us(&duration), SLEEP_TIME - TOLERANCE_UNDER);
ck_assert_int_le(duration_us(&duration), SLEEP_TIME + TOLERANCE_OVER);

ck_assert_str_eq(write_message, read_message);

Expand Down
4 changes: 2 additions & 2 deletions test/time/wheel/check_wheel.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ _incr_cb(void *v)

START_TEST(test_timing_wheel_basic)
{
#define TICK_NS 1000000
#define TICK_NS 100000000
#define NSLOT 3
#define NTICK 2

Expand Down Expand Up @@ -182,7 +182,7 @@ END_TEST

START_TEST(test_timing_wheel_edge_case)
{
#define TICK_NS 1000000
#define TICK_NS 100000000
#define NSLOT 3
#define NTICK 2

Expand Down

0 comments on commit b106c6c

Please sign in to comment.