VirtualBox

Changeset 5028 in vbox


Ignore:
Timestamp:
Sep 25, 2007 3:59:19 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24822
Message:

Main: Improved the hard disk testcase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstAPI.cpp

    r4071 r5028  
    248248    }
    249249
    250 #if 1
     250#if 0
    251251    // IUnknown identity test
    252252    ////////////////////////////////////////////////////////////////////////////
     
    443443#endif
    444444
    445 #if 0
     445#if 1
    446446    // register the existing hard disk image
    447447    ///////////////////////////////////////////////////////////////////////////
     
    450450        ComPtr <IHardDisk> hd;
    451451        Bstr src = L"E:\\develop\\innotek\\images\\NewHardDisk.vdi";
    452         printf ("Registerin the existing hard disk '%ls'...\n", src.raw());
     452        printf ("Opening the existing hard disk '%ls'...\n", src.raw());
    453453        CHECK_ERROR_BREAK (virtualBox, OpenHardDisk (src, hd.asOutParam()));
     454        printf ("Enter to continue...\n");
     455        getchar();
     456        printf ("Registering the existing hard disk '%ls'...\n", src.raw());
    454457        CHECK_ERROR_BREAK (virtualBox, RegisterHardDisk (hd));
     458        printf ("Enter to continue...\n");
     459        getchar();
    455460    }
    456461    while (FALSE);
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