about summary refs log tree commit diff
path: root/Test/B12limit.ztst
blob: 9227513696ca6912538e346dffe5033f8d9e69b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# check if there is unknown resouce(s)

%test

 limit | grep UNKNOWN || print OK
0:Check if there is unknown resouce(s) in the system
>OK
F:A failure here does not indicate any error in zsh. It just means there
F:is a resource in your system that is unknown to zsh developers. Please
F:report this to zsh-workers mailing list.

  () {
    set -- ${(f)"$(ulimit -a)"}
    set -- ${@%%:*}
    typeset -aU unique_options=( "$@" )
    # The value of $unique_options is, e.g., ( -t -f '-N 2' -s ... ).
    (( $# == $#unique_options ))
  }
0:check if limit option letters are unique