os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/config/Concurrent.ini
First public contribution.
2 // Concurrency tests. Threads[2-8] wait (semaphore) until they receive a
3 // signal. Thread1 creates the db and adds a table to it. It then signals the
4 // other threads and all eight threads write integer, real, and text data
8 Delete1=C:\Concurrent.db
9 ExpectedError1=KErrNotFound
10 Create2=C:\Concurrent.db
11 Exec3=Create Table Con( Someint int primary key, Somereal real, Sometext text);
12 Prepare4=insert into Con(Someint, Somereal, Sometext) values(:FInt, :FReal, :FText);
13 // Wake up the other threads, we're doing the next bit concurrently.
16 Function6=WriteBigTable
17 EventuallyExpectedError=KErrNone
31 Open2=C:\Concurrent.db
32 Prepare3=insert into Con(Someint, Somereal, Sometext) values(:FInt, :FReal, :FText);
33 Function4=WriteBigTable
34 EventuallyExpectedError=KErrNone
48 Open2=C:\Concurrent.db
49 Prepare3=insert into Con(Someint, Somereal, Sometext) values(:FInt, :FReal, :FText);
50 Function4=WriteBigTable
51 EventuallyExpectedError=KErrNone
65 Open2=C:\Concurrent.db
66 Prepare3=insert into Con(Someint, Somereal, Sometext) values(:FInt, :FReal, :FText);
67 Function4=WriteBigTable
68 EventuallyExpectedError=KErrNone
72 Multiplier=3.141592654
82 Open2=C:\Concurrent.db
83 Prepare3=insert into Con(Someint, Somereal, Sometext) values(:FInt, :FReal, :FText);
84 Function4=WriteBigTable
85 EventuallyExpectedError=KErrNone
99 Open2=C:\Concurrent.db
100 Prepare3=insert into Con(Someint, Somereal, Sometext) values(:FInt, :FReal, :FText);
101 Function4=WriteBigTable
102 EventuallyExpectedError=KErrNone
116 Open2=C:\Concurrent.db
117 Prepare3=insert into Con(Someint, Somereal, Sometext) values(:FInt, :FReal, :FText);
118 Function4=WriteBigTable
119 EventuallyExpectedError=KErrNone
133 Open2=C:\Concurrent.db
134 Prepare3=insert into Con(Someint, Somereal, Sometext) values(:FInt, :FReal, :FText);
135 Function4=WriteBigTable
136 EventuallyExpectedError=KErrNone
140 Multiplier=3.141592654
147 // The following 8 blocks check the content written by the threads above.
148 // These are entirely independent of each other and therefore do not require
149 // use of the semaphores.
152 Open0=C:\Concurrent.db
153 Prepare1=select * from Con where(Sometext="Thread1");
155 ExpectedError2=KSqlAtRow
158 Function4=ReadBigTable
159 EventuallyExpectedError=KErrNone
171 Open0=C:\Concurrent.db
172 Prepare1=select * from Con where(Sometext="Thread2");
174 ExpectedError2=KSqlAtRow
177 Function4=ReadBigTable
178 EventuallyExpectedError=KErrNone
190 Open0=C:\Concurrent.db
191 Prepare1=select * from Con where(Sometext="Thread3");
193 ExpectedError2=KSqlAtRow
196 Function4=ReadBigTable
197 EventuallyExpectedError=KErrNone
209 Open0=C:\Concurrent.db
210 Prepare1=select * from Con where(Sometext="Thread4");
212 ExpectedError2=KSqlAtRow
215 Function4=ReadBigTable
216 EventuallyExpectedError=KErrNone
220 Multiplier=3.141592654
228 Open0=C:\Concurrent.db
229 Prepare1=select * from Con where(Sometext="Thread5");
231 ExpectedError2=KSqlAtRow
234 Function4=ReadBigTable
235 EventuallyExpectedError=KErrNone
247 Open0=C:\Concurrent.db
248 Prepare1=select * from Con where(Sometext="Thread6");
250 ExpectedError2=KSqlAtRow
253 Function4=ReadBigTable
254 EventuallyExpectedError=KErrNone
266 Open0=C:\Concurrent.db
267 Prepare1=select * from Con where(Sometext="Thread7");
269 ExpectedError2=KSqlAtRow
272 Function4=ReadBigTable
273 EventuallyExpectedError=KErrNone
285 Open0=C:\Concurrent.db
286 Prepare1=select * from Con where(Sometext="Thread8");
288 ExpectedError2=KSqlAtRow
291 Function4=ReadBigTable
292 EventuallyExpectedError=KErrNone
296 Multiplier=3.141592654