Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
domenukk committed Nov 12, 2024
1 parent 75f2a35 commit bc3fda1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libafl_targets/src/drcov.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,15 @@ mod test {

let reader = DrCovReader::read(&drcov_tmp_file).unwrap();

assert_eq!(reader.basic_block_entries.len(), 4);
assert_eq!(reader.module_map().len(), 3);
assert_eq!(reader.basic_blocks().len(), 4);

// Let's do one more round :)
reader.write(&drcov_tmp_file).unwrap();
let reader = DrCovReader::read(&drcov_tmp_file).unwrap();

assert_eq!(reader.basic_block_entries.len(), 4);
assert_eq!(reader.module_map().len(), 3);
assert_eq!(reader.basic_blocks().len(), 4);

Expand Down

0 comments on commit bc3fda1

Please sign in to comment.