mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibCore: Stop obsessing about tiny OOMs in Core::Timer
Work towards #20405
This commit is contained in:
parent
bf1c82724f
commit
1cb5385a29
Notes:
sideshowbarker
2024-07-16 21:39:23 +09:00
Author: https://github.com/awesomekling
Commit: 1cb5385a29
Pull-request: https://github.com/SerenityOS/serenity/pull/23988
52 changed files with 111 additions and 113 deletions
|
@ -43,21 +43,21 @@ TEST_CASE(file_watcher_child_events)
|
|||
event_count++;
|
||||
};
|
||||
|
||||
auto timer1 = MUST(Core::Timer::create_single_shot(500, [&] {
|
||||
auto timer1 = Core::Timer::create_single_shot(500, [&] {
|
||||
int rc = creat("/tmp/testfile", 0777);
|
||||
EXPECT_NE(rc, -1);
|
||||
}));
|
||||
});
|
||||
timer1->start();
|
||||
|
||||
auto timer2 = MUST(Core::Timer::create_single_shot(1000, [&] {
|
||||
auto timer2 = Core::Timer::create_single_shot(1000, [&] {
|
||||
int rc = unlink("/tmp/testfile");
|
||||
EXPECT_NE(rc, -1);
|
||||
}));
|
||||
});
|
||||
timer2->start();
|
||||
|
||||
auto catchall_timer = MUST(Core::Timer::create_single_shot(2000, [&] {
|
||||
auto catchall_timer = Core::Timer::create_single_shot(2000, [&] {
|
||||
VERIFY_NOT_REACHED();
|
||||
}));
|
||||
});
|
||||
catchall_timer->start();
|
||||
|
||||
event_loop.exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue