Skip to content

Commit 9f4637b

Browse files
committed
Make tests pass again
Signed-off-by: Sean Young <sean@mess.org>
1 parent cf3e66e commit 9f4637b

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118

119119
mac-intel:
120120
name: Mac Intel
121-
runs-on: macos-12
121+
runs-on: macos-13
122122
steps:
123123
- name: Checkout sources
124124
uses: actions/checkout@v4

.github/workflows/test.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ jobs:
1313
repolinter:
1414
name: Repolinter
1515
runs-on: solang-ubuntu-latest
16+
# spdx runs on python 3.10 but not any later versions
17+
container: ubuntu:22.04
1618
steps:
19+
- name: Install Python and npm
20+
run: |
21+
apt-get update
22+
apt-get install -y python3 git npm
1723
- name: Checkout sources
1824
uses: actions/checkout@v4
1925
- name: Run repolinter
2026
run: npx repolinter --rulesetUrl https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/master/repo_structure/repolint.json
2127
- uses: enarx/spdx@master
2228
with:
23-
licenses: Apache-2.0 MIT
29+
licenses: Apache-2.0
2430

2531
docs:
2632
name: Docs
@@ -199,7 +205,7 @@ jobs:
199205

200206
mac-intel:
201207
name: Mac Intel
202-
runs-on: macos-12
208+
runs-on: macos-13
203209
steps:
204210
- name: Checkout sources
205211
uses: actions/checkout@v4
@@ -223,7 +229,7 @@ jobs:
223229

224230
mac-universal:
225231
name: Mac Universal Binary
226-
runs-on: macos-12
232+
runs-on: macos-13
227233
needs: [mac-arm, mac-intel]
228234
steps:
229235
- uses: actions/download-artifact@v4.1.8

stdlib/solana.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ struct chunk
217217
uint32_t allocated;
218218
};
219219

220-
#define ROUND_UP(n, d) (((n) + (d)-1) & ~(d - 1))
220+
#define ROUND_UP(n, d) (((n) + (d) - 1) & ~(d - 1))
221221

222222
uint64_t account_data_alloc(SolAccountInfo *ai, uint32_t size, uint32_t *res)
223223
{

tests/soroban_testcases/print.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,5 @@ fn print_then_runtime_error() {
6666
let logs = src.invoke_contract_expect_error(addr, "decrement", vec![]);
6767

6868
assert!(logs[0].contains("Second call will FAIL!"));
69-
assert!(logs[1].contains("Second call will FAIL!"));
70-
assert!(logs[2].contains("runtime_error: math overflow in test.sol:6:17-27"));
69+
assert!(logs[1].contains("runtime_error: math overflow in test.sol:6:17-27"));
7170
}

0 commit comments

Comments
 (0)