chiark / gitweb /
tree-wide: remove Lennart's copyright lines
[elogind.git] / src / test / test-util.c
index 9d31d5a869dabc106d69bb2f56bcd2084f3a719e..973f4efcf8f6426d72985c9dd251b3192a8633e8 100644 (file)
@@ -1,8 +1,5 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 /***
-  This file is part of systemd.
-
-  Copyright 2010 Lennart Poettering
   Copyright 2013 Thomas H.P. Andersen
 ***/
 
@@ -215,6 +212,10 @@ static void test_raw_clone(void) {
                 waitpid(pid, &status, __WCLONE);
                 assert_se(WIFEXITED(status) && WEXITSTATUS(status) == EXIT_SUCCESS);
         }
+
+        errno = 0;
+        assert_se(raw_clone(CLONE_FS|CLONE_NEWNS) == -1);
+        assert_se(errno == EINVAL);
 }
 #endif // 0