modules/getlogin-tests


Log

Author Commit Date CI Message
Guilherme de Almeida Suckevicz 97249cf2 2014-05-14T22:06:24 getlogin-tests: avoid false failure under sudo/ssh etc. * modules/getlogin-tests (configure.ac): Check for ttyname(). * tests/test-getlogin.c (main): Don't depend on environment variables to correlate with getlogin(), since sudo and ssh etc. can tamper with the LOGNAME and USER env vars. Instead lookup the name from the uid associated with the stdin tty.
Bruno Haible 39331312 2010-01-09T16:18:53 Tests for module 'getlogin'.