VirtualBox

Changeset 48490 in vbox for trunk


Ignore:
Timestamp:
Sep 16, 2013 3:09:24 PM (11 years ago)
Author:
vboxsync
Message:

tstAPI: test (DNS & Co) modified to ask in endless loop (with 1 sec pause) nameservers list and domain name.

File:
1 edited

Legend:

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

    r48334 r48490  
    12161216    // DNS & Co.
    12171217    ///////////////////////////////////////////////////////////////////////////
     1218    /* XXX: Note it's endless loop */
    12181219    do
    12191220    {
     
    12261227            RTPrintf("Domain name: %ls\n", domainName.raw());
    12271228        }
    1228     }
    1229     while (FALSE);
     1229
     1230        com::SafeArray<BSTR> strs;
     1231        CHECK_ERROR_BREAK(host, COMGETTER(NameServers)(ComSafeArrayAsOutParam(strs)));
     1232
     1233        unsigned int i;
     1234        for (i = 0; i < strs.size(); ++i)
     1235            RTPrintf("Name server[%d]:%s\n", i, com::Utf8Str(strs[i]).c_str());
     1236
     1237        RTThreadSleep(1000);
     1238    }
     1239    while (1);
    12301240    RTPrintf("\n");
    12311241#endif
Note: See TracChangeset for help on using the changeset viewer.

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