Skip to content

Commit

Permalink
Added tests for thread creation/destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed May 24, 2024
1 parent ab53fb8 commit 4963bc8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/fail_thread_create.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <thread>
#include <lib_rt_check.h>

int main()
{
std::thread t;

{
realtime_context rc;
t = std::thread ([] {});
}

t.join();

return 0;
}
12 changes: 12 additions & 0 deletions tests/fail_thread_join.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <thread>
#include <lib_rt_check.h>

int main()
{
std::thread t ([] {});

realtime_context rc;
t.join();

return 0;
}

0 comments on commit 4963bc8

Please sign in to comment.