diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index a773d49..0000000 --- a/.cirrus.yml +++ /dev/null @@ -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 * \ No newline at end of file diff --git a/.github/workflows/.freebsd.yml b/.github/workflows/.freebsd.yml new file mode 100644 index 0000000..53a4301 --- /dev/null +++ b/.github/workflows/.freebsd.yml @@ -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 diff --git a/socket/sock_test.c b/socket/sock_test.c index a2fd17f..08b3343 100644 --- a/socket/sock_test.c +++ b/socket/sock_test.c @@ -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; @@ -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; @@ -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; @@ -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;