We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a09c50 commit 1c1d93fCopy full SHA for 1c1d93f
crates/scsi/src/scsi/tests/mod.rs
@@ -20,7 +20,16 @@ fn null_image() -> File {
20
21
fn test_image() -> File {
22
let mut f = tempfile().unwrap();
23
- f.write_all(include_bytes!("./test.img")).unwrap();
+ // generate 16 512-byte sectors, each of which consist of a single
24
+ // repeated hex character, i.e.
25
+ // sector 00: 0000000....0000
26
+ // sector 15: fffffff....ffff
27
+ for chr in b'0'..=b'9' {
28
+ f.write_all(&[chr; 512]).unwrap();
29
+ }
30
+ for chr in b'a'..=b'f' {
31
32
33
f
34
}
35
crates/scsi/src/scsi/tests/test.img
0 commit comments