ptsname: Avoid test failure on OSF/1 5.1.
authorBruno Haible <bruno@clisp.org>
Wed, 22 Dec 2010 16:53:09 +0000 (17:53 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 22 Dec 2010 16:53:09 +0000 (17:53 +0100)
commitf7fecbfc47c114a633f1fa754a0d9e1ad6cfc868
tree8571f5e36aeda19b0f133189031ad54c844868c0
parent1a56c64d39a790bc69b58166f7b963334951e1a9
ptsname: Avoid test failure on OSF/1 5.1.

* modules/ptsname-tests (Depends-on): Add 'same-inode'.
* tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
(same_slave): New function.
(main): Use it to compare ptsname's result with the expected file name.
ChangeLog
modules/ptsname-tests
tests/test-ptsname.c