~ubuntu-branches/ubuntu/quantal/virtualbox/quantal

« back to all changes in this revision

Viewing changes to src/VBox/VMM/testcase/tstSSM.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-05-29 10:09:31 UTC
  • mfrom: (3.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20120529100931-2xayrbh5hyzm6e9p
Tags: 4.1.16-dfsg-1
* New upstream release.
* Drop 37-fix-build-gcc47.patch, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <VBox/err.h>
32
32
#include <VBox/param.h>
33
33
#include <iprt/assert.h>
 
34
#include <iprt/file.h>
34
35
#include <iprt/initterm.h>
35
36
#include <iprt/mem.h>
36
37
#include <iprt/stream.h>
436
437
        /* next */
437
438
        cb -= PAGE_SIZE;
438
439
        pu8Org += PAGE_SIZE;
439
 
        if (pu8Org > &gabBigMem[sizeof(gabBigMem)])
 
440
        if (pu8Org >= &gabBigMem[sizeof(gabBigMem)])
440
441
            pu8Org = &gabBigMem[0];
441
442
    }
442
443
 
500
501
        /* next */
501
502
        cb -= PAGE_SIZE;
502
503
        pu8Org += PAGE_SIZE;
503
 
        if (pu8Org > &gabBigMem[sizeof(gabBigMem)])
 
504
        if (pu8Org >= &gabBigMem[sizeof(gabBigMem)])
504
505
            pu8Org = &gabBigMem[0];
505
506
    }
506
507
 
900
901
        return 1;
901
902
    }
902
903
 
 
904
    /* delete */
 
905
    RTFileDelete(pszFilename);
 
906
 
903
907
    RTPrintf("tstSSM: SUCCESS\n");
904
908
    return 0;
905
909
}