Skip to content

Commit

Permalink
[bug] error for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Feb 11, 2025
1 parent 2f5c368 commit 7e421c8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions modules/axfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,3 @@ axdriver = { workspace = true, features = ["block", "ramdisk"] }
axdriver_block = { git = "https://github.com/arceos-org/axdriver_crates.git", tag = "v0.1.0", features = ["ramdisk"] }
axsync = { workspace = true, features = ["multitask"] }
axtask = { workspace = true, features = ["test"] }
axns = { workspace = true, features = [] }
crate_interface = "0.1"
9 changes: 0 additions & 9 deletions modules/axfs/tests/test_fatfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ mod test_common;

use axdriver::AxDeviceContainer;
use axdriver_block::ramdisk::RamDisk;
use axns::{AxNamespace, AxNamespaceIf};

const IMG_PATH: &str = "resources/fat16.img";

Expand All @@ -16,14 +15,6 @@ fn make_disk() -> std::io::Result<RamDisk> {
Ok(RamDisk::from(&data))
}

struct AxNamespaceImpl;
#[crate_interface::impl_interface]
impl AxNamespaceIf for AxNamespaceImpl {
fn current_namespace_base() -> *mut u8 {
AxNamespace::global().base()
}
}

#[test]
fn test_fatfs() {
println!("Testing fatfs with ramdisk ...");
Expand Down
9 changes: 0 additions & 9 deletions modules/axfs/tests/test_ramfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use axfs::fops::{Disk, MyFileSystemIf};
use axfs_ramfs::RamFileSystem;
use axfs_vfs::VfsOps;
use axio::{Result, Write};
use axns::{AxNamespace, AxNamespaceIf};

struct MyFileSystemIfImpl;

Expand Down Expand Up @@ -42,14 +41,6 @@ fn create_init_files() -> Result<()> {
Ok(())
}

struct AxNamespaceImpl;
#[crate_interface::impl_interface]
impl AxNamespaceIf for AxNamespaceImpl {
fn current_namespace_base() -> *mut u8 {
AxNamespace::global().base()
}
}

#[test]
fn test_ramfs() {
println!("Testing ramfs ...");
Expand Down

0 comments on commit 7e421c8

Please sign in to comment.