1
0
mirror of https://github.com/pocoproject/poco.git synced 2024-12-20 20:56:20 +01:00

use /dev/tty instead /dev/console on Cygwin otherwise a file acces check

makes the test failing.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2015-08-22 09:54:29 +02:00
parent 083ade8135
commit 293e7c91f7

View File

@ -228,7 +228,11 @@ void FileTest::testFileAttributes2()
void FileTest::testFileAttributes3()
{
#if defined(POCO_OS_FAMILY_UNIX)
#if POCO_OS==POCO_OS_CYGWIN
File f("/dev/tty");
#else
File f("/dev/console");
#endif
#elif defined(POCO_OS_FAMILY_WINDOWS) && !defined(_WIN32_WCE)
File f("CON");
#endif