qsharedmemory_unix.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qsharedmemory_unix.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8QSharedMemoryPrivate::QSharedMemoryPrivate()-
9 : QObjectPrivate(), memory(0), size(0), error(QSharedMemory::NoError),-
10-
11 systemSemaphore(QString()), lockedByMe(false),-
12-
13-
14 unix_key(0)-
15-
16-
17-
18{-
19}
executed 3612 times by 3 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QSharedMemory
  • tst_qsharedmemory - unknown status
3612
20-
21void QSharedMemoryPrivate::setErrorString(QLatin1String function)-
22{-
23-
24 switch ((*__errno_location ())) {-
25 case
never executed: case 13:
13:
never executed: case 13:
0
26 errorString = QSharedMemory::tr("%1: permission denied").arg(function);-
27 error = QSharedMemory::PermissionDenied;-
28 break;
never executed: break;
0
29 case
executed 2 times by 1 test: case 17:
Executed by:
  • tst_QSharedMemory
17:
executed 2 times by 1 test: case 17:
Executed by:
  • tst_QSharedMemory
2
30 errorString = QSharedMemory::tr("%1: already exists").arg(function);-
31 error = QSharedMemory::AlreadyExists;-
32 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QSharedMemory
2
33 case
never executed: case 2:
2:
never executed: case 2:
0
34 errorString = QSharedMemory::tr("%1: doesn't exist").arg(function);-
35 error = QSharedMemory::NotFound;-
36 break;
never executed: break;
0
37 case
never executed: case 24:
24:
never executed: case 24:
0
38 case
never executed: case 12:
12:
never executed: case 12:
0
39 case
never executed: case 28:
28:
never executed: case 28:
0
40 errorString = QSharedMemory::tr("%1: out of resources").arg(function);-
41 error = QSharedMemory::OutOfResources;-
42 break;
never executed: break;
0
43 default
never executed: default:
:
never executed: default:
0
44 errorString = QSharedMemory::tr("%1: unknown error %2").arg(function).arg((*__errno_location ()));-
45 error = QSharedMemory::UnknownError;-
46-
47-
48-
49 }
never executed: end of block
0
50}-
51-
52-
Switch to Source codePreprocessed file

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