Skip to content

Commit

Permalink
debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cowlicks committed Sep 25, 2024
1 parent 4da0314 commit 454444b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ use crate::common::c::require_c_exe;

#[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_c_exe()?;
let _ = run_make_with("target/hyperbee")?;
let output = run_script_relative_to_git_root("tests/common/c/target/hyperbee")?;
assert!(output.status.success());
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(output.stdout)?.trim().to_string();
assert_eq!(stdout, "25");
Ok(())
Expand Down

0 comments on commit 454444b

Please sign in to comment.