Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a8f860b authored by Yuan Yao's avatar Yuan Yao
Browse files

prefetch: fix replay_test test error

The `copy_uncached_files_and_record_from` test utility function is
updated to keep the file descriptors of the newly created "uncached"
files open and return them.

This change ensures that the files are not closed for the duration of
the test by returning a vector of open `File` handles. In some certain
environment, the closed file could be readed by other processes for
security check, which will cause unexpected test failure.

Bug: 436685355
Test: cargo build & cargo test

Change-Id: Ib8eb590c7ab0d0c84369f2845e9d1ecca4b3de45
parent 371af7b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment