summaryrefslogtreecommitdiff
path: root/tests/test_confstr_dynamic.c
blob: e5721e5058083b7f5e6d0461c0e7a38c99f8f568 (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) {
  char buffer[8] = {0};

  confstr(_CS_PATH, buffer, 6);

  CHK_FAIL_START
  confstr(_CS_PATH, buffer, argc);
  CHK_FAIL_END

  puts(buffer);
  return ret;
}