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

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/server_test.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:
215
215
        if (debug_mode) DPRINTF("\tServer accepted connection (%d bytes)\n", bytesRead);
216
216
        
217
217
        PR_AtomicIncrement(&workerThreadsBusy);
 
218
#ifdef SYMBIAN
 
219
        if (workerThreadsBusy == workerThreads && workerThreads<1) {
 
220
#else
218
221
        if (workerThreadsBusy == workerThreads) {
219
 
 
 
222
#endif
220
223
            PR_Lock(workerThreadsLock);
221
224
            if (workerThreadsBusy == workerThreads) {
222
225
                PRThread *WorkerThread;
568
571
}
569
572
 
570
573
 
571
 
main(int argc, char **argv)
 
574
int main(int argc, char **argv)
572
575
{
573
576
        /* The command line argument: -d is used to determine if the test is being run
574
577
        in debug mode. The regress tool requires only one line output:PASS or FAIL.
593
596
        PL_DestroyOptState(opt);
594
597
 
595
598
 /* main test */
 
599
#ifndef SYMBIAN
596
600
    if (debug_mode) {
597
601
                printf("Enter number of iterations: \n");
598
602
                scanf("%d", &_iterations);
603
607
                printf("Enter size of server data : \n");
604
608
                scanf("%d", &_server_data);
605
609
        }
606
 
        else {
 
610
        else 
 
611
#endif
 
612
        {
 
613
 
607
614
                _iterations = 10;
608
615
            _clients = 1;
609
616
                _client_data = 10;