Skip to content

Commit

Permalink
Add comment to snapbox.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jan 28, 2024
1 parent 621a688 commit bda2f6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/snapbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ fn snapbox() -> Result<()> {

let test: Test = toml::from_str(&raw).unwrap();

// smoelius: I learned this conditional initialization trick from Solana's source code:
// https://github.com/solana-labs/rbpf/blob/f52bfa0f4912d5f6eaa364de7c42b6ee6be50a88/src/elf.rs#L401
let tempdir;
let dir = match (test.path, test.url) {
(Some(path), None) => PathBuf::from(path),
Expand Down

0 comments on commit bda2f6c

Please sign in to comment.