VirtualBox

Changeset 41295 in vbox


Ignore:
Timestamp:
May 15, 2012 9:14:23 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77961
Message:

tstSSM: repaired and delete the saved state after a successful test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstSSM.cpp

    r39078 r41295  
    3232#include <VBox/param.h>
    3333#include <iprt/assert.h>
     34#include <iprt/file.h>
    3435#include <iprt/initterm.h>
    3536#include <iprt/mem.h>
     
    442443        cb -= PAGE_SIZE;
    443444        pu8Org += PAGE_SIZE;
    444         if (pu8Org > &gabBigMem[sizeof(gabBigMem)])
     445        if (pu8Org >= &gabBigMem[sizeof(gabBigMem)])
    445446            pu8Org = &gabBigMem[0];
    446447    }
     
    507508        cb -= PAGE_SIZE;
    508509        pu8Org += PAGE_SIZE;
    509         if (pu8Org > &gabBigMem[sizeof(gabBigMem)])
     510        if (pu8Org >= &gabBigMem[sizeof(gabBigMem)])
    510511            pu8Org = &gabBigMem[0];
    511512    }
     
    909910    }
    910911
     912    /* delete */
     913    RTFileDelete(pszFilename);
     914
    911915    RTPrintf("tstSSM: SUCCESS\n");
    912916    return 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette