[compiler-rt] e87ee2f - [test][sanitizer] Switch test to a different group

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 16:59:59 PDT 2022


Author: Vitaly Buka
Date: 2022-08-10T16:59:40-07:00
New Revision: e87ee2f4a9ed311a0311594ab8f93f963f8c72d7

URL: https://github.com/llvm/llvm-project/commit/e87ee2f4a9ed311a0311594ab8f93f963f8c72d7
DIFF: https://github.com/llvm/llvm-project/commit/e87ee2f4a9ed311a0311594ab8f93f963f8c72d7.diff

LOG: [test][sanitizer] Switch test to a different group

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp
index f0429f819b40..314fcda4cc8f 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp
@@ -8,7 +8,7 @@
 
 int main(void) {
   gid_t *groups;
-  group *nobody;
+  group *root;
   int ngroups;
 
   ngroups = sysconf(_SC_NGROUPS_MAX);
@@ -16,10 +16,10 @@ int main(void) {
   if (!groups)
     exit(1);
 
-  if (!(nobody = getgrnam("nobody")))
+  if (!(root = getgrnam("root")))
     exit(2);
 
-  if (getgrouplist("nobody", nobody->gr_gid, groups, &ngroups) == -1)
+  if (getgrouplist("root", root->gr_gid, groups, &ngroups) == -1)
     exit(3);
 
   if (groups && ngroups) {


        


More information about the llvm-commits mailing list