Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
4lDO2
acid
Commits
b6b3b190
Verified
Commit
b6b3b190
authored
Aug 06, 2021
by
4lDO2
🖖
Browse files
Add "pcid fault" test, capable of oxidizing relibc.
parent
e1ab6b44
Pipeline
#9591
passed with stages
in 1 minute and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.rs
View file @
b6b3b190
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment