summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2015-08-26 16:30:26 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2015-08-26 16:33:11 +0000
commite4a3bf0625e4fb608ffdf0fdce67d9d7cabe6822 (patch)
tree1f2ed2dd88489d785c3332bcc6b0d902a830e262
parentuse unique_ptr (diff)
downloadcore-e4a3bf0625e4fb608ffdf0fdce67d9d7cabe6822.tar.gz
core-e4a3bf0625e4fb608ffdf0fdce67d9d7cabe6822.zip
KDE4: don't ignore write(2) return value
Silence the glibc compile warning and actually handle a wrong return value. Change-Id: Icdbc8e655d4b8ad20699dfd0abdbf3405a49f898
-rw-r--r--vcl/unx/kde4/tst_exclude_socket_notifiers.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/kde4/tst_exclude_socket_notifiers.hxx b/vcl/unx/kde4/tst_exclude_socket_notifiers.hxx
index 5e7843fb7ebe..3adb95633f1b 100644
--- a/vcl/unx/kde4/tst_exclude_socket_notifiers.hxx
+++ b/vcl/unx/kde4/tst_exclude_socket_notifiers.hxx
@@ -74,7 +74,8 @@ static int tst_processEventsExcludeSocket()
QSocketNotifier notifier( pipes[ 0 ], QSocketNotifier::Read );
QObject::connect( &notifier, SIGNAL( activated( int )), &test, SLOT( slotReceived()));
char dummy = 'a';
- write( pipes[ 1 ], &dummy, 1 );
+ if( 1 != write( pipes[ 1 ], &dummy, 1 ) )
+ return 1;
QEventLoop loop;
loop.processEvents( QEventLoop::ExcludeSocketNotifiers );
QVERIFY( !test.received );