diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-01 21:18:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-02 17:15:36 +0200 |
commit | 29eceebdbf78f94d2993ab476a076a6fe82b4131 (patch) | |
tree | 51c9284103ab6596d7549964d8ef4cc37502479a /Tests/Kernel/null-deref-crash-during-pthread_join.cpp | |
parent | 538b985487fd958a7e8663a32867ac39d6643d04 (diff) | |
download | serenity-29eceebdbf78f94d2993ab476a076a6fe82b4131.zip |
Tests: Build automatically, fix compilation errors
Diffstat (limited to 'Tests/Kernel/null-deref-crash-during-pthread_join.cpp')
-rw-r--r-- | Tests/Kernel/null-deref-crash-during-pthread_join.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Tests/Kernel/null-deref-crash-during-pthread_join.cpp b/Tests/Kernel/null-deref-crash-during-pthread_join.cpp deleted file mode 100644 index 409cbe90f3..0000000000 --- a/Tests/Kernel/null-deref-crash-during-pthread_join.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include <pthread.h> -#include <stdio.h> -#include <sys/select.h> -#include <unistd.h> - -int main(int, char**) -{ - pthread_t tid; - pthread_create( - &tid, nullptr, [](void*) -> void* { - sleep(1); - asm volatile("ud2"); - return nullptr; - }, - nullptr); - - pthread_join(tid, nullptr); - - printf("ok\n"); - return 0; -} |