From 33b35b782f073504973820c2256714b9a262496b Mon Sep 17 00:00:00 2001 From: Blake Griffith Date: Wed, 25 Sep 2024 15:15:21 -0400 Subject: [PATCH] remove debugging stuff --- tests/ffi.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/ffi.rs b/tests/ffi.rs index 9208ecd..0babd37 100644 --- a/tests/ffi.rs +++ b/tests/ffi.rs @@ -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; }