Skip to content

Instantly share code, notes, and snippets.

@claesjac
Created January 20, 2013 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claesjac/6adc1d4586023dc40d7f to your computer and use it in GitHub Desktop.
Save claesjac/6adc1d4586023dc40d7f to your computer and use it in GitHub Desktop.
[claes@sol ~/perl-5.17.8/ext/POSIX]$ ../../perl -I../../lib -I../../lib -T t/sysconf.t
1..47
ok 1 - calling fpathconf(3, _PC_CHOWN_RESTRICTED)
ok 2 - the returned value should be a signed integer
ok 3 - calling fpathconf(3, _PC_LINK_MAX)
ok 4 - the returned value should be a signed integer
ok 5 - calling fpathconf(3, _PC_NAME_MAX)
ok 6 - the returned value should be a signed integer
ok 7 - calling fpathconf(3, _PC_NO_TRUNC)
not ok 8 - errno should be 0 as before the call
# Failed test 'errno should be 0 as before the call'
# at t/sysconf.t line 70.
# got: 22
# expected: 0
# $!: Invalid argument
ok 9 - calling fpathconf(3, _PC_PATH_MAX)
ok 10 - the returned value should be a signed integer
ok 11 - calling pathconf('/tmp', _PC_CHOWN_RESTRICTED)
ok 12 - the returned value should be a signed integer
ok 13 - calling pathconf('/tmp', _PC_LINK_MAX)
ok 14 - the returned value should be a signed integer
ok 15 - calling pathconf('/tmp', _PC_NAME_MAX)
ok 16 - the returned value should be a signed integer
ok 17 - calling pathconf('/tmp', _PC_NO_TRUNC)
not ok 18 - errno should be 0 as before the call
# Failed test 'errno should be 0 as before the call'
# at t/sysconf.t line 70.
# got: 22
# expected: 0
# $!: Invalid argument
ok 19 - calling pathconf('/tmp', _PC_PATH_MAX)
ok 20 - the returned value should be a signed integer
ok 21 - calling fpathconf(3, _PC_MAX_CANON) (/dev/tty)
ok 22 - the returned value should be a signed integer
ok 23 - calling fpathconf(3, _PC_MAX_INPUT) (/dev/tty)
ok 24 - the returned value should be a signed integer
ok 25 - calling fpathconf(3, _PC_VDISABLE) (/dev/tty)
ok 26 - the returned value should be a signed integer
ok 27 - calling pathconf(/dev/tty, _PC_MAX_CANON)
ok 28 - the returned value should be a signed integer
ok 29 - calling pathconf(/dev/tty, _PC_MAX_INPUT)
ok 30 - the returned value should be a signed integer
ok 31 - calling pathconf(/dev/tty, _PC_VDISABLE)
ok 32 - the returned value should be a signed integer
ok 33 - calling fpathconf(4, _PC_PIPE_BUF) (fifo55600)
ok 34 - the returned value should be a signed integer
ok 35 - calling pathconf(fifo55600, _PC_PIPE_BUF
ok 36 - the returned value should be a signed integer
ok 37 - calling sysconf(_SC_ARG_MAX)
ok 38 - calling sysconf(_SC_CHILD_MAX)
ok 39 - calling sysconf(_SC_CLK_TCK)
ok 40 - calling sysconf(_SC_JOB_CONTROL)
ok 41 - calling sysconf(_SC_NGROUPS_MAX)
ok 42 - calling sysconf(_SC_OPEN_MAX)
ok 43 - calling sysconf(_SC_PAGESIZE)
ok 44 - calling sysconf(_SC_SAVED_IDS)
ok 45 - calling sysconf(_SC_STREAM_MAX)
ok 46 - calling sysconf(_SC_VERSION)
ok 47 - calling sysconf(_SC_TZNAME_MAX)
# Looks like you failed 2 tests of 47.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment