aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/sysconf_test.go
blob: fb0c7f8ae168026ac0c1ffc2db953b00146e1850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package app

import "testing"

const (
	_POSIX_LOGIN_NAME_MAX = 9
)

func TestSysconf(t *testing.T) {
	t.Parallel()

	t.Run("LOGIN_NAME_MAX", func(t *testing.T) {
		if got := sysconf(_SC_LOGIN_NAME_MAX); got < _POSIX_LOGIN_NAME_MAX {
			t.Errorf("sysconf(_SC_LOGIN_NAME_MAX): %d < _POSIX_LOGIN_NAME_MAX", got)
		}
	})
}