summaryrefslogtreecommitdiff
path: root/test/msan/initgroups.cc
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:00:15 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:00:15 +0000
commit63714eb5809e39666dec2454c354195e76f916ba (patch)
treee3714cd783c265396c2ef3c117047e7c0ea41619 /test/msan/initgroups.cc
parent0646903fc1f75f6e605754621119473ee083f4a4 (diff)
Notes
Diffstat (limited to 'test/msan/initgroups.cc')
-rw-r--r--test/msan/initgroups.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/msan/initgroups.cc b/test/msan/initgroups.cc
deleted file mode 100644
index 974b1cbaa666..000000000000
--- a/test/msan/initgroups.cc
+++ /dev/null
@@ -1,12 +0,0 @@
-// RUN: %clangxx_msan -O0 %s -o %t && %run %t
-
-#include <sys/types.h>
-#include <grp.h>
-#include <unistd.h> // FreeBSD declares initgroups() here.
-
-int main(void) {
- initgroups("root", 0);
- // The above fails unless you are root. Does not matter, MSan false positive
- // (which we are testing for) happens anyway.
- return 0;
-}