VirtualBox

Changeset 75793 in vbox for trunk/src/VBox/Main/webservice


Ignore:
Timestamp:
Nov 28, 2018 5:26:57 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126996
Message:

webservice/webtest.cpp: add Runtime init (with the SSL code it otherwise triggered internal assertions when initializing the thread stuff late), and remove the temp code size increase again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/webtest.cpp

    r69500 r75793  
    2727#include <string>
    2828
    29 /* TEMPORARY! */
    30 #if defined(_MSC_VER) && !defined(RT_ARCH_AMD64) && defined(DEBUG)
    31 void wastesomecodespace(int a, int b, int c)
    32 {
    33     for (int i = 0; i < c ; i++)
    34         a = a * b * c;
    35 }
    36 #endif
     29#include <iprt/initterm.h>
     30#include <iprt/message.h>
     31
    3732
    3833static void usage(int exitcode)
     
    8782    const char *pcszArgEndpoint = "http://localhost:18083/";
    8883
     84    /* SSL callbacks drag in IPRT sem/thread use, so make sure it is ready. */
     85    int rc = RTR3InitExe(argc, &argv, 0);
     86    if (RT_FAILURE(rc))
     87        return RTMsgInitFailure(rc);
     88
    8989    int ap;
    9090    for (ap = 1; ap < argc; ap++)
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