Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady committed Jan 21, 2025
1 parent 8588b3b commit 6643578
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testing/module/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ relib_interface::include_imports!();
relib_interface::include_exports!();
use gen_exports::ModuleExportsImpl;

static mut UNLOADED: bool = false;

impl Exports for ModuleExportsImpl {
fn empty() {}

Expand Down
5 changes: 5 additions & 0 deletions testing/runner/src/code_change.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ fn run_host(directory: &str) {
wait_for_end_of_exec(&mut stderr);
}

// TEST
std::fs::remove_file("target/debug/deps/test_module.pdb").unwrap();

// TODO: add assert with memory usage check
let (rebuild_debug, rebuild_release) = cmd!(
"cargo",
Expand Down Expand Up @@ -111,6 +114,8 @@ fn run_host(directory: &str) {

let mut stdout_content = String::new();
stdout.read_to_string(&mut stdout_content).unwrap();

// TODO: this doesnt work because of wait_for_end_of_exec
let mut stderr_content = String::new();
stderr.read_to_string(&mut stderr_content).unwrap();

Expand Down

0 comments on commit 6643578

Please sign in to comment.