VirtualBox

Changeset 16239 in vbox for trunk/src


Ignore:
Timestamp:
Jan 26, 2009 4:10:15 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42041
Message:

OVF: updated test case

File:
1 edited

Legend:

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

    r16198 r16239  
    11411141#endif
    11421142
    1143 #if 1
     1143#if 0
    11441144    do {
    11451145        // Get host
     
    11651165            networkInterface->COMGETTER(Id)(interfaceGuid2.asOutParam());
    11661166            if (interfaceGuid2 != interfaceGuid)
    1167                 printf("Failed to retrive an interface by name %lS.\n", interfaceName.raw());
     1167                printf("Failed to retrieve an interface by name %lS.\n", interfaceName.raw());
    11681168            // Find the interface by its guid
    11691169            networkInterface.setNull();
     
    11731173            networkInterface->COMGETTER(Name)(interfaceName2.asOutParam());
    11741174            if (interfaceName != interfaceName2)
    1175                 printf("Failed to retrive an interface by GUID %lS.\n", Bstr(interfaceGuid.toString()).raw());
     1175                printf("Failed to retrieve an interface by GUID %lS.\n", Bstr(interfaceGuid.toString()).raw());
    11761176        }
    11771177        else
     
    13011301    do
    13021302    {
    1303         Bstr ovf = L"/home/poetzsch/projects/out.ovf";
    1304         //Bstr ovf = L"/home/poetzsch/projects/someOVF.ovf";
    1305 //        Bstr ovf = L"/Users/poetzsch/projects/someOVF.ovf";
    1306 //        Bstr ovf = L"/Users/poetzsch/projects/out.ovf";
    1307 //        Bstr name = argc > 1 ? argv [1] : "dsl";
     1303        Bstr ovf = argc > 1 ? argv [1] : "someOVF.ovf";
    13081304        printf ("Try to open %ls ...\n", ovf.raw());
    13091305
     
    13141310        CHECK_ERROR_BREAK (appliance, COMGETTER (Path)(path.asOutParam()));
    13151311        printf ("Successfully opened %ls.\n", path.raw());
     1312        CHECK_ERROR_BREAK (appliance,
     1313                           Interpret());
     1314        printf ("Successfully interpreted %ls.\n", path.raw());
    13161315        printf ("Appliance:\n");
    13171316        // Fetch all disks
     
    13601359            printf ("\n");
    13611360        }
     1361        CHECK_ERROR_BREAK (appliance,
     1362                           ImportAppliance());
    13621363    }
    13631364    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