Skip to content

Commit 12fd98b

Browse files
authored
Try and test on macos (#52)
Run tests on macos as well as ubuntu
1 parent f66f9f0 commit 12fd98b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ccpp.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,9 @@ jobs:
3636
runs-on: macos-latest
3737
steps:
3838
- uses: actions/checkout@v2
39+
- name: setup
40+
run: brew install socat
3941
- name: build
40-
run: make
42+
run: make
43+
- name: test
44+
run: make test

simple_uart_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void test_read_timeout(void)
190190
end_time = mseconds();
191191
TEST_ASSERT(result == -ETIMEDOUT); // Should timeout
192192
TEST_ASSERT((end_time - start_time) >= 180); // Should wait at least ~180ms
193-
TEST_ASSERT((end_time - start_time) < 300); // But not much longer than 200ms
193+
TEST_ASSERT((end_time - start_time) < 500); // But not too long
194194

195195
/* Test successful read within timeout */
196196
simple_uart_write(u2, "test", 4);

0 commit comments

Comments
 (0)