Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test helpers to read and write C data (#9)
``` [javierhonduco@computer rbperf]$ sudo valgrind -s target/debug/deps/rbperf-219212b34533da7c --skip rbperf::tests::rbperf_test ==2146031== Memcheck, a memory error detector ==2146031== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==2146031== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info ==2146031== Command: target/debug/deps/rbperf-219212b34533da7c --skip rbperf::tests::rbperf_test ==2146031== running 14 tests test bindgen_test_layout_ProcessData ... ok test binary::tests::test_malformed_ruby_version_should_panic - should panic ... ok test binary::tests::test_ruby_current_thread_does_not_exist ... ok test binary::tests::test_find_main_works ... ok test bindgen_test_layout_RubyStackAddress ... ok test bindgen_test_layout_RubyStackAddresses ... ok test bindgen_test_layout_RubyVersionOffsets ... ok test bindgen_test_layout_RubyStack ... ok test bindgen_test_layout_RubyFrame ... ok test bindgen_test_layout_SampleState ... ok test ruby_readers::tests::test_parse_char_buffer_works ... ok test ruby_readers::tests::test_parse_empty_char_buffer ... ok test ruby_readers::tests::test_parse_malformed_char_buffer_errors ... ok test ruby_readers::tests::test_parse_stack ... ok test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 9.21s ==2146031== ==2146031== HEAP SUMMARY: ==2146031== in use at exit: 0 bytes in 0 blocks ==2146031== total heap usage: 1,073 allocs, 1,073 frees, 60,581,564 bytes allocated ==2146031== ==2146031== All heap blocks were freed -- no leaks are possible ==2146031== ==2146031== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ```
- Loading branch information