Skip to content

Commit 235afd8

Browse files
committed
x
1 parent 890b424 commit 235afd8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest, windows-latest]
1717
runs-on: ${{ matrix.os }}
18+
env:
19+
RUST_BACKTRACE: full
1820

1921
steps:
2022
- uses: actions/checkout@v3
2123
- name: Lint
22-
run: cargo clippy --all-targets --all-features -- -D warnings
24+
run: cargo clippy --all-features -- -D warnings
2325
- name: Test
2426
run: cargo test --all-targets --all-features
2527
- name: Build

tests/integration_test.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn test_macho(size: usize, sign: bool) {
6262
#[cfg(target_os = "macos")]
6363
let mut out = std::fs::OpenOptions::new()
6464
.write(true)
65-
.truncate(true)
65+
.create(true)
6666
.mode(0o755)
6767
.open(&_path)
6868
.unwrap();
@@ -128,7 +128,7 @@ fn test_elf(size: usize) {
128128
#[cfg(target_os = "linux")]
129129
let mut out = std::fs::OpenOptions::new()
130130
.write(true)
131-
.truncate(true)
131+
.create(true)
132132
.mode(0o755)
133133
.open(&_path)
134134
.unwrap();
@@ -167,7 +167,7 @@ fn test_pe(size: usize) {
167167
#[cfg(target_os = "windows")]
168168
let mut out = std::fs::OpenOptions::new()
169169
.write(true)
170-
.truncate(true)
170+
.create(true)
171171
.open(&_path)
172172
.unwrap();
173173
pe.write_resource(RESOURCE_NAME, data)

0 commit comments

Comments
 (0)