Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enum-class committed Jan 23, 2024
1 parent 9ba8754 commit 2a3950f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ jobs:
gcc:
strategy:
matrix:
gcc: [8, 9, 10, 11, 13]
gcc: [9, 10, 11, 13]
build_type: [Release, Debug]
fail-fast: false
name: "GCC ${{ matrix.gcc }}, ${{ matrix.build_type }}"
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: "Install GCC"
uses: egor-tensin/setup-gcc@v1
Expand All @@ -25,11 +25,11 @@ jobs:
clang:
strategy:
matrix:
clang: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
clang: [11, 12, 13, 14, 15, 16, 17]
build_type: [Release, Debug]
fail-fast: false
name: "Clang ${{ matrix.clang }}, ${{ matrix.build_type }}"
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: "Install Clang"
uses: egor-tensin/setup-clang@v1
Expand All @@ -43,7 +43,7 @@ jobs:
- run: cmake --build ${{ matrix.build_type }}
- run: ./${{ matrix.build_type }}/tests/run_test
clang-format-check:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: "Install clang-format"
run: sudo apt-get install -y clang-format
Expand Down
4 changes: 2 additions & 2 deletions tests/io-context-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ int ioc_evaluate_tokens(void)
assert(ioc.tail == 0);

for (size_t i = 0; i < expected_capacity; ++i) {
release_token(&ioc, ioc.available_tokens[i]);
assert(release_token(&ioc, ioc.available_tokens[i]) == void);
}

assert(ioc.tail == expected_capacity);

for (size_t i = 0; i < expected_capacity; ++i) {
release_token(&ioc, ioc.available_tokens[i]);
assert(release_token(&ioc, ioc.available_tokens[i]) == void);
}

assert(ioc.tail == expected_capacity);
Expand Down

0 comments on commit 2a3950f

Please sign in to comment.