Skip to content

Commit

Permalink
remove debugging stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
cowlicks committed Sep 25, 2024
1 parent 27d2848 commit 33b35b7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,19 @@ use common::{

#[test]
fn make_test_basic_ffi_hb_get() -> Result<()> {
//let x: &[u8] = &[128, 228, 64, 216, 240, 85, 50, 53, 10];
//println!("{}", String::from_utf8_lossy(&x));
//assert!(false);
require_js_data()?;
require_c_exe()?;
let _ = run_make_with("target/hyperbee")?;
let mut count = 0;
loop {
println!("{count}");
// TODO FIXME sometimes there is junk in the beggining of the stdout on the first run
let output = run_script_relative_to_git_root("tests/common/c/target/hyperbee")?;
dbg!(&output.stdout);
println!("stdout:\n{}", String::from_utf8_lossy(&output.stdout));
dbg!(&output.stderr);
println!("stderr:\n{}", String::from_utf8_lossy(&output.stderr));
let stdout = String::from_utf8_lossy(&output.stdout).trim().to_string();
if stdout == "25" {
break;
}
if count == 5 {
assert!(false);
panic!("should have passed");
}
count += 1;
}
Expand Down

0 comments on commit 33b35b7

Please sign in to comment.