Skip to content

Commit 19ad3a4

Browse files
authored
Use GH actions for FreeBSD (#131)
* Use GH actions for FreeBSD
1 parent 5037d2d commit 19ad3a4

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

.cirrus.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/.freebsd.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: freeBSD
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 0'
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
jobs:
12+
freebsd:
13+
runs-on: ubuntu-latest
14+
name: FreeBSD
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Test FreeBSD
18+
id: test
19+
uses: vmactions/freebsd-vm@v1
20+
with:
21+
usesh: true
22+
prepare: |
23+
pkg install -y git cmake
24+
run: |
25+
pwd
26+
mkdir build && cd build
27+
cmake -DSANITIZER=address .. && make && make check && rm -rf *
28+
cmake -DSANITIZER=undefined .. && make && make check

socket/sock_test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ void test_poll_edge(void)
15091509
&clt);
15101510
assert(rc == 0);
15111511

1512-
sc_time_sleep(50);
1512+
sc_time_sleep(250);
15131513
count = sc_sock_poll_wait(&p, timeout);
15141514
assert(count >= 2);
15151515
found = 0;
@@ -1553,7 +1553,7 @@ void test_poll_edge(void)
15531553
&acc);
15541554
assert(rc == 0);
15551555

1556-
sc_time_sleep(50);
1556+
sc_time_sleep(250);
15571557
count = sc_sock_poll_wait(&p, timeout);
15581558
assert(count >= 1);
15591559
found = 0;
@@ -1589,7 +1589,7 @@ void test_poll_edge(void)
15891589
assert(total_w > 0);
15901590

15911591
do {
1592-
sc_time_sleep(50);
1592+
sc_time_sleep(250);
15931593
count = sc_sock_poll_wait(&p, timeout);
15941594
assert(count >= 1);
15951595
found = 0;
@@ -1628,7 +1628,7 @@ void test_poll_edge(void)
16281628
} while (total_r < total_w);
16291629
assert(total_r == total_w);
16301630

1631-
sc_time_sleep(50);
1631+
sc_time_sleep(250);
16321632
count = sc_sock_poll_wait(&p, timeout);
16331633
assert(count >= 1);
16341634
found = 0;

0 commit comments

Comments
 (0)