Skip to content

Commit

Permalink
Use GH actions for FreeBSD (#131)
Browse files Browse the repository at this point in the history
* Use GH actions for FreeBSD
  • Loading branch information
tezc committed Apr 5, 2024
1 parent 5037d2d commit 19ad3a4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 14 deletions.
10 changes: 0 additions & 10 deletions .cirrus.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/.freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: freeBSD
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- master
pull_request:
branches:
- master
jobs:
freebsd:
runs-on: ubuntu-latest
name: FreeBSD
steps:
- uses: actions/checkout@v4
- name: Test FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y git cmake
run: |
pwd
mkdir build && cd build
cmake -DSANITIZER=address .. && make && make check && rm -rf *
cmake -DSANITIZER=undefined .. && make && make check
8 changes: 4 additions & 4 deletions socket/sock_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ void test_poll_edge(void)
&clt);
assert(rc == 0);

sc_time_sleep(50);
sc_time_sleep(250);
count = sc_sock_poll_wait(&p, timeout);
assert(count >= 2);
found = 0;
Expand Down Expand Up @@ -1553,7 +1553,7 @@ void test_poll_edge(void)
&acc);
assert(rc == 0);

sc_time_sleep(50);
sc_time_sleep(250);
count = sc_sock_poll_wait(&p, timeout);
assert(count >= 1);
found = 0;
Expand Down Expand Up @@ -1589,7 +1589,7 @@ void test_poll_edge(void)
assert(total_w > 0);

do {
sc_time_sleep(50);
sc_time_sleep(250);
count = sc_sock_poll_wait(&p, timeout);
assert(count >= 1);
found = 0;
Expand Down Expand Up @@ -1628,7 +1628,7 @@ void test_poll_edge(void)
} while (total_r < total_w);
assert(total_r == total_w);

sc_time_sleep(50);
sc_time_sleep(250);
count = sc_sock_poll_wait(&p, timeout);
assert(count >= 1);
found = 0;
Expand Down

0 comments on commit 19ad3a4

Please sign in to comment.