qsystemsemaphore_unix.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qsystemsemaphore_unix.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6QSystemSemaphorePrivate::QSystemSemaphorePrivate() :-
7-
8 unix_key(-1), semaphore(-1), createdFile(false),-
9-
10-
11-
12 createdSemaphore(false), error(QSystemSemaphore::NoError)-
13{-
14}
executed 3735 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
3735
15-
16void QSystemSemaphorePrivate::setErrorString(const QString &function)-
17{-
18-
19 switch ((*__errno_location ())) {-
20 case
never executed: case 1:
1:
never executed: case 1:
0
21 case
never executed: case 13:
13:
never executed: case 13:
0
22 errorString = QCoreApplication::translate("QSystemSemaphore", "%1: permission denied").arg(function);-
23 error = QSystemSemaphore::PermissionDenied;-
24 break;
never executed: break;
0
25 case
never executed: case 17:
17:
never executed: case 17:
0
26 errorString = QCoreApplication::translate("QSystemSemaphore", "%1: already exists").arg(function);-
27 error = QSystemSemaphore::AlreadyExists;-
28 break;
never executed: break;
0
29 case
never executed: case 2:
2:
never executed: case 2:
0
30 errorString = QCoreApplication::translate("QSystemSemaphore", "%1: does not exist").arg(function);-
31 error = QSystemSemaphore::NotFound;-
32 break;
never executed: break;
0
33 case
never executed: case 34:
34:
never executed: case 34:
0
34 case
executed 2 times by 1 test: case 28:
Executed by:
  • tst_QSharedMemory
28:
executed 2 times by 1 test: case 28:
Executed by:
  • tst_QSharedMemory
2
35 errorString = QCoreApplication::translate("QSystemSemaphore", "%1: out of resources").arg(function);-
36 error = QSystemSemaphore::OutOfResources;-
37 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QSharedMemory
2
38 default
never executed: default:
:
never executed: default:
0
39 errorString = QCoreApplication::translate("QSystemSemaphore", "%1: unknown error %2").arg(function).arg((*__errno_location ()));-
40 error = QSystemSemaphore::UnknownError;-
41-
42-
43-
44 }
never executed: end of block
0
45}-
46-
47-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9