Skip to content

Instantly share code, notes, and snippets.

@ivan
Created January 29, 2023 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivan/b34285a55575f430f7bf0371f40b0e64 to your computer and use it in GitHub Desktop.
Save ivan/b34285a55575f430f7bf0371f40b0e64 to your computer and use it in GitHub Desktop.
# while true; do echo "Again..."; rm -rf target/debug/build/blake3*; find target/debug -name '*blake3*' -type f -delete; RUSTFLAGS="-C target-cpu=haswell" low-pri cargo test test_file_hash || break; done
Again...
Compiling blake3 v1.3.1
Compiling fclones v0.29.1 (/home/at/trash/fclones)
Finished test [unoptimized + debuginfo] target(s) in 8.59s
Running unittests src/lib.rs (target/debug/deps/fclones-60f140ff6898185c)
running 7 tests
test hasher::test::test_file_hash_metro_128 ... ok
test hasher::test::test_file_hash_sha256 ... ok
test hasher::test::test_file_hash_sha3_256 ... ok
test hasher::test::test_file_hash_xxh3 ... ok
test hasher::test::test_file_hash_sha3_512 ... ok
test hasher::test::test_file_hash_blake3 ... FAILED
test hasher::test::test_file_hash_sha512 ... ok
failures:
---- hasher::test::test_file_hash_blake3 stdout ----
thread 'hasher::test::test_file_hash_blake3' panicked at 'assertion failed: `(left != right)`
left: `FileHash([175, 19, 73, 185, 245, 249, 161, 166, 160, 64, 77, 234, 54, 220, 201, 73, 155, 203, 37, 201, 173, 193, 18, 183, 204, 154, 147, 202, 228, 31, 50, 98])`,
right: `FileHash([175, 19, 73, 185, 245, 249, 161, 166, 160, 64, 77, 234, 54, 220, 201, 73, 155, 203, 37, 201, 173, 193, 18, 183, 204, 154, 147, 202, 228, 31, 50, 98])`', src/hasher.rs:670:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
hasher::test::test_file_hash_blake3
test result: FAILED. 6 passed; 1 failed; 0 ignored; 0 measured; 152 filtered out; finished in 0.08s
error: test failed, to rerun pass `--lib`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment