From 293e7c91f7f03f3c032275c39a32fa476aab07c8 Mon Sep 17 00:00:00 2001 From: FrancisANDRE Date: Sat, 22 Aug 2015 09:54:29 +0200 Subject: [PATCH] use /dev/tty instead /dev/console on Cygwin otherwise a file acces check makes the test failing. Signed-off-by: FrancisANDRE --- Foundation/testsuite/src/FileTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Foundation/testsuite/src/FileTest.cpp b/Foundation/testsuite/src/FileTest.cpp index a9dfb1932..9b2117a11 100644 --- a/Foundation/testsuite/src/FileTest.cpp +++ b/Foundation/testsuite/src/FileTest.cpp @@ -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