Skip to content

Commit 890b424

Browse files
committed
litn
1 parent 0c413c1 commit 890b424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration_test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -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-
.create(true)
131+
.truncate(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-
.create(true)
170+
.truncate(true)
171171
.open(&_path)
172172
.unwrap();
173173
pe.write_resource(RESOURCE_NAME, data)

0 commit comments

Comments
 (0)