mirror of
https://github.com/tezc/sc.git
synced 2025-01-28 07:03:06 +08:00
parent
5037d2d36e
commit
19ad3a4478
10
.cirrus.yml
10
.cirrus.yml
@ -1,10 +0,0 @@
|
|||||||
freebsd_task:
|
|
||||||
freebsd_instance:
|
|
||||||
image_family: freebsd-12-1
|
|
||||||
cpu: 1
|
|
||||||
memory: 2G
|
|
||||||
test_script:
|
|
||||||
- pkg install -y git cmake
|
|
||||||
- mkdir build && cd build
|
|
||||||
- cmake -DSANITIZER=address .. && make && make check && rm -rf *
|
|
||||||
- cmake -DSANITIZER=undefined .. && make && make check && rm -rf *
|
|
28
.github/workflows/.freebsd.yml
vendored
Normal file
28
.github/workflows/.freebsd.yml
vendored
Normal file
@ -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
|
@ -1509,7 +1509,7 @@ void test_poll_edge(void)
|
|||||||
&clt);
|
&clt);
|
||||||
assert(rc == 0);
|
assert(rc == 0);
|
||||||
|
|
||||||
sc_time_sleep(50);
|
sc_time_sleep(250);
|
||||||
count = sc_sock_poll_wait(&p, timeout);
|
count = sc_sock_poll_wait(&p, timeout);
|
||||||
assert(count >= 2);
|
assert(count >= 2);
|
||||||
found = 0;
|
found = 0;
|
||||||
@ -1553,7 +1553,7 @@ void test_poll_edge(void)
|
|||||||
&acc);
|
&acc);
|
||||||
assert(rc == 0);
|
assert(rc == 0);
|
||||||
|
|
||||||
sc_time_sleep(50);
|
sc_time_sleep(250);
|
||||||
count = sc_sock_poll_wait(&p, timeout);
|
count = sc_sock_poll_wait(&p, timeout);
|
||||||
assert(count >= 1);
|
assert(count >= 1);
|
||||||
found = 0;
|
found = 0;
|
||||||
@ -1589,7 +1589,7 @@ void test_poll_edge(void)
|
|||||||
assert(total_w > 0);
|
assert(total_w > 0);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
sc_time_sleep(50);
|
sc_time_sleep(250);
|
||||||
count = sc_sock_poll_wait(&p, timeout);
|
count = sc_sock_poll_wait(&p, timeout);
|
||||||
assert(count >= 1);
|
assert(count >= 1);
|
||||||
found = 0;
|
found = 0;
|
||||||
@ -1628,7 +1628,7 @@ void test_poll_edge(void)
|
|||||||
} while (total_r < total_w);
|
} while (total_r < total_w);
|
||||||
assert(total_r == total_w);
|
assert(total_r == total_w);
|
||||||
|
|
||||||
sc_time_sleep(50);
|
sc_time_sleep(250);
|
||||||
count = sc_sock_poll_wait(&p, timeout);
|
count = sc_sock_poll_wait(&p, timeout);
|
||||||
assert(count >= 1);
|
assert(count >= 1);
|
||||||
found = 0;
|
found = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user