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

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/foreign.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:
124
124
}  /* windows_start */
125
125
#endif /* defined(WIN32) */
126
126
 
127
 
static PRStatus CreateThread(StartFn start, void *arg)
 
127
static PRStatus NSPRPUB_TESTS_CreateThread(StartFn start, void *arg)
128
128
{
129
129
    PRStatus rv;
130
130
 
218
218
        rv = PR_FAILURE;
219
219
    }
220
220
    return rv;
221
 
}  /* CreateThread */
 
221
}  /* NSPRPUB_TESTS_CreateThread */
222
222
 
223
223
static void PR_CALLBACK lazyEntry(void *arg)
224
224
{
281
281
            break;
282
282
            
283
283
        case 6:
284
 
            dir = PR_OpenDir("/tmp/"); 
 
284
#ifdef SYMBIAN
 
285
#define TEMP_DIR "c:\\data\\"
 
286
#else
 
287
#define TEMP_DIR "/tmp/"
 
288
#endif
 
289
            dir = PR_OpenDir(TEMP_DIR);
285
290
                        DPRINTF((output,"Thread[0x%x] called PR_OpenDir\n",
286
291
                        PR_GetCurrentThread()));
287
292
            PR_CloseDir(dir);
325
330
        }
326
331
}  /* OneShot */
327
332
 
328
 
PRIntn main(PRIntn argc, char **argv)
 
333
int main(int argc, char **argv)
329
334
{
330
335
    PRStatus rv;
331
336
        PRInt32 thread_cnt = DEFAULT_THREAD_COUNT;
366
371
 
367
372
    while (thread_cnt-- > 0)
368
373
    {
369
 
        rv = CreateThread(OneShot, (void*)thread_cnt);
 
374
        rv = NSPRPUB_TESTS_CreateThread(OneShot, (void*)thread_cnt);
370
375
        PR_ASSERT(PR_SUCCESS == rv);
371
376
        PR_Sleep(PR_MillisecondsToInterval(5));
372
377
    }