File: 0008-Use-null-as-device-file-as-console-might-not-be-ther.patch

package info (click to toggle)
poco 1.11.0-3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 51,528 kB
  • sloc: cpp: 306,164; ansic: 197,138; makefile: 1,464; sh: 507; xml: 79; perl: 29
file content (21 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Tue, 1 Nov 2016 22:35:07 +0100
Subject: Use null as device file as console might not be there

---
 Foundation/testsuite/src/FileTest.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Foundation/testsuite/src/FileTest.cpp b/Foundation/testsuite/src/FileTest.cpp
index df7d6f7..bffbb49 100644
--- a/Foundation/testsuite/src/FileTest.cpp
+++ b/Foundation/testsuite/src/FileTest.cpp
@@ -229,7 +229,7 @@ void FileTest::testFileAttributes3()
 #if POCO_OS==POCO_OS_CYGWIN
 	File f("/dev/tty");
 #else
- 	File f("/dev/console");
+ 	File f("/dev/null");
 #endif
 #elif defined(POCO_OS_FAMILY_WINDOWS) && !defined(_WIN32_WCE)
 	File f("CON");