summaryrefslogtreecommitdiff
path: root/tests/test_getgroups_static.c
blob: 954654a13e842dde18f6346ddc17d02aec570659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "common.h"

#include <unistd.h>

int main(int argc, char** argv) {
  gid_t list[12] = {0};

  getgroups(10, list);

  CHK_FAIL_START
  getgroups(14, list);
  CHK_FAIL_END

  puts((const char*)list);
  return ret;
}