~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/servr_ku.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
        if (debug_mode) DPRINTF("\tServer accepted connection (%d bytes)\n", bytesRead);
183
183
        
184
184
        PR_AtomicIncrement(&workerThreadsBusy);
 
185
#ifdef SYMBIAN
 
186
        if (workerThreadsBusy == workerThreads && workerThreads<1) {
 
187
#else
185
188
        if (workerThreadsBusy == workerThreads) {
186
 
 
 
189
#endif
187
190
            PR_Lock(workerThreadsLock);
188
191
            if (workerThreadsBusy == workerThreads) {
189
192
                PRThread *WorkerThread;
527
530
}
528
531
 
529
532
 
530
 
main(int argc, char **argv)
 
533
int main(int argc, char **argv)
531
534
{
532
535
        /* The command line argument: -d is used to determine if the test is being run
533
536
        in debug mode. The regress tool requires only one line output:PASS or FAIL.
552
555
        PL_DestroyOptState(opt);
553
556
 
554
557
 /* main test */
 
558
#ifndef SYMBIAN
555
559
    if (debug_mode) {
556
560
                printf("Enter number of iterations: \n");
557
561
                scanf("%d", &_iterations);
562
566
                printf("Enter size of server data : \n");
563
567
                scanf("%d", &_server_data);
564
568
        }
565
 
        else {
 
569
        else 
 
570
#endif
 
571
        {
566
572
                _iterations = 7;
567
573
                _clients = 7;
568
574
                _client_data = 100;