summaryrefslogtreecommitdiff
path: root/Userland/Tests/Kernel/null-deref-close-during-select.cpp
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-08-01 23:49:01 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-02 17:15:36 +0200
commit58240aedd98041be8d10921cdea0e52f9e13daa6 (patch)
tree5bb85e1e7dbf37e74e4ea1ca858b825a0e3382fc /Userland/Tests/Kernel/null-deref-close-during-select.cpp
parent29eceebdbf78f94d2993ab476a076a6fe82b4131 (diff)
downloadserenity-58240aedd98041be8d10921cdea0e52f9e13daa6.zip
Tests: License headers, clang-format, clearer output
Diffstat (limited to 'Userland/Tests/Kernel/null-deref-close-during-select.cpp')
-rw-r--r--Userland/Tests/Kernel/null-deref-close-during-select.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/Userland/Tests/Kernel/null-deref-close-during-select.cpp b/Userland/Tests/Kernel/null-deref-close-during-select.cpp
index 907c650616..97d8aba41e 100644
--- a/Userland/Tests/Kernel/null-deref-close-during-select.cpp
+++ b/Userland/Tests/Kernel/null-deref-close-during-select.cpp
@@ -1,3 +1,29 @@
+/*
+ * Copyright (c) 2018-2020, the SerenityOS developers.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
#include <pthread.h>
#include <stdio.h>
#include <sys/select.h>