!=========================================================================
! Copyright (C) VMware, Inc. 1986-2011.  All Rights Reserved.
!
! $Id: auditimage.gs,v 1.11.2.1 2008-02-19 04:56:45 normg Exp $
!
! Description -  Object audit and garbage collect for use in filein.
!
!=========================================================================

! Start a admin and reclaim Gems so reclaimAll can complete
expectvalue true 
run
System startAdminGcSession .
System stoneConfigurationAt: #StnNumGcReclaimSessions put: 1 .
System startAllReclaimGcSessions.
true
%

expectvalue true
run
System waitForAllGcGemsToStartForUpToSeconds: 30.
%

expectvalue true
run
SystemRepository auditWithLimit:50000
%

expectvalue true
run
SystemRepository markForCollection
%

expectvalue true
run
System waitForAllGcGemsToStartForUpToSeconds: 30.
%

expectvalue true
run
SystemRepository auditWithLimit:50000
%
