uhyve icon indicating copy to clipboard operation
uhyve copied to clipboard

`cargo test --test fs-test` fails on `main`

Open n0toose opened this issue 7 months ago • 1 comments

To reproduce, run cargo test new_file_test or cargo test --test fs-test: https://github.com/hermit-os/uhyve/pull/725#pullrequestreview-2161560881

~ cargo test new_file_test
    Finished test [unoptimized + debuginfo] target(s) in 0.06s
     Running unittests src/lib.rs (target/debug/deps/uhyvelib-bc3acb47a2075c26)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.00s

     Running unittests src/bin/uhyve.rs (target/debug/deps/uhyve-84a7e3d5e6db36b8)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/common.rs (target/debug/deps/common-e049bf123cef4ec3)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/fs-test.rs (target/debug/deps/fs_test-dc7c558e0c2546f0)

running 1 test
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s
[0][INFO] Welcome to Hermit 0.8.0
[0][INFO] Kernel starts at 400000
[0][INFO] BSS starts at 0x9e5a70
[0][INFO] tls_info = Some(
    TlsInfo {
        start: 0x8950f0,
        filesz: 0x28,
        memsz: 0xc8,
        align: 0x8,
    },
)
[0][INFO] Total memory size: 32 MB
[0][INFO] Kernel region: [400000 - a00000]
[0][INFO] A pure Rust application is running on top of Hermit!
[0][INFO] Heap: size 14 MB, start address a00000
[0][INFO] Heap is located at 0xa00000..0x1800000 (0 Bytes unmapped)
[0][INFO] Physical memory free list:
         0x1800000..         0x2000000 (len =           0x800000, pages =             2048)
[0][INFO] Virtual memory free list:
         0x1800000..    0x800000000000 (len =     0x7ffffe800000, pages =      34359732224)
[0][INFO] 
[0][INFO] ========================== CPU INFORMATION ===========================
[0][INFO] Model:                   uhyve - unikernel hypervisor
[0][INFO] Frequency:               [...]
[0][INFO] SpeedStep Technology:    Not Available
[0][INFO] Features:                [...]
[0][INFO] Physical Address Width:  48 bits
[0][INFO] Linear Address Width:    48 bits
[0][INFO] Supports 1GiB Pages:     Yes
[0][INFO] ======================================================================
[0][INFO] 
[0][INFO] Hermit booted on 2024-07-06 18:13:49.964760794 +00:00:00
[0][WARN] Try to use default APIC address
[1][PANIC] panicked at /rustc/ada5e2c7b5427a591e30baeeee2698a5eb6db0bd/library/alloc/src/vec/mod.rs:1572:13:
insertion index (is 1) should be <= len (is 0)
Number of interrupts
[1][INFO] shutting down with code 1
test new_file_test ... FAILED

failures:

---- new_file_test stdout ----
Building Kernel create_file
thread 'new_file_test' panicked at tests/common.rs:52:5:
assertion `left == right` failed
  left: 0
 right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    new_file_test

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.37s

error: test failed, to rerun pass `--test fs-test`

n0toose avatar Jul 06 '24 18:07 n0toose