~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/bigfile2.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:
45
45
#endif
46
46
 
47
47
#define TEST_FILE_NAME "bigfile2.txt"
 
48
#ifdef WINCE
 
49
#define TEST_FILE_NAME_FOR_CREATEFILE   L"bigfile2.txt"
 
50
#else
 
51
#define TEST_FILE_NAME_FOR_CREATEFILE   TEST_FILE_NAME
 
52
#endif
48
53
 
49
54
#define MESSAGE "Hello world!"
50
55
#define MESSAGE_SIZE 13
89
94
    memset(buf, 0, sizeof(buf));
90
95
 
91
96
#ifdef _WIN32
92
 
    hFile = CreateFile(TEST_FILE_NAME, GENERIC_READ, 0, NULL,
 
97
    hFile = CreateFile(TEST_FILE_NAME_FOR_CREATEFILE, GENERIC_READ, 0, NULL,
93
98
            OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
94
99
    if (hFile == INVALID_HANDLE_VALUE) {
95
100
        fprintf(stderr, "CreateFile failed\n");