Verified Commit b6b3b190 authored by 4lDO2's avatar 4lDO2 🖖
Browse files

Add "pcid fault" test, capable of oxidizing relibc.

parent e1ab6b44
Pipeline #9591 passed with stages
in 1 minute and 10 seconds
......@@ -644,6 +644,20 @@ fn futex_test() -> Result<(), String> {
// other if they would happen to use the same virtual address, but in different address spaces.
Ok(())
}
fn aqua_regia() -> Result<(), String> {
let (sender, receiver) = std::sync::mpsc::sync_channel(8192);
let thread = std::thread::spawn(move || {
receiver.into_iter().for_each(drop);
});
for i in 0..10000 {
sender.send(Box::new(42));
}
thread.join().unwrap();
Ok(())
}
fn main() {
use std::collections::BTreeMap;
......@@ -659,6 +673,7 @@ fn main() {
tests.insert("thread", thread_test);
tests.insert("tls", tls_test);
tests.insert("futex", futex_test);
tests.insert("aqua_regia", aqua_regia);
let mut ran_test = false;
for arg in env::args().skip(1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment