summaryrefslogtreecommitdiff
path: root/tests/test_confstr_static.c
blob: f468532acbbf4dc28c8edb62f32c7091f7cc71fb (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[4] = {0};

  confstr(_CS_PATH, buffer, 4);

  CHK_FAIL_START
  confstr(_CS_PATH, buffer, 8);
  CHK_FAIL_END

  puts(buffer);
  return ret;
}