VirtualBox

Ignore:
Timestamp:
Feb 24, 2015 2:54:42 PM (10 years ago)
Author:
vboxsync
Message:

Runtime/testcase: rename tstR0Preemption to tstRTR0Preemption to match the rest of the testcases.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTR0ThreadPreemptionDriver.cpp

    r54436 r54449  
    55
    66/*
    7  * Copyright (C) 2009-2013 Oracle Corporation
     7 * Copyright (C) 2009-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4242#ifdef VBOX
    4343# include <VBox/sup.h>
    44 # include "tstR0ThreadPreemption.h"
     44# include "tstRTR0ThreadPreemption.h"
    4545#endif
    4646
     
    8888     */
    8989    RTTEST hTest;
    90     int rc = RTTestInitAndCreate("tstR0ThreadPreemption", &hTest);
     90    int rc = RTTestInitAndCreate("tstRTR0ThreadPreemption", &hTest);
    9191    if (rc)
    9292        return rc;
     
    104104    rc = RTPathExecDir(szPath, sizeof(szPath));
    105105    if (RT_SUCCESS(rc))
    106         rc = RTPathAppend(szPath, sizeof(szPath), "tstR0ThreadPreemption.r0");
     106        rc = RTPathAppend(szPath, sizeof(szPath), "tstRTR0ThreadPreemption.r0");
    107107    if (RT_FAILURE(rc))
    108108    {
     
    112112
    113113    void *pvImageBase;
    114     rc = SUPR3LoadServiceModule(szPath, "tstR0ThreadPreemption",
    115                                 "TSTR0ThreadPreemptionSrvReqHandler",
     114    rc = SUPR3LoadServiceModule(szPath, "tstRTR0ThreadPreemption",
     115                                "TSTRTR0ThreadPreemptionSrvReqHandler",
    116116                                &pvImageBase);
    117117    if (RT_FAILURE(rc))
     
    135135    Req.Hdr.cbReq = sizeof(Req);
    136136    Req.szMsg[0] = '\0';
    137     RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,
    138                                              TSTR0THREADPREMEPTION_SANITY_OK, 0, &Req.Hdr), VINF_SUCCESS);
     137    RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1,
     138                                             TSTRTR0THREADPREEMPTION_SANITY_OK, 0, &Req.Hdr), VINF_SUCCESS);
    139139    if (RT_FAILURE(rc))
    140140        return RTTestSummaryAndDestroy(hTest);
     
    146146    Req.Hdr.cbReq = sizeof(Req);
    147147    Req.szMsg[0] = '\0';
    148     RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,
    149                                              TSTR0THREADPREMEPTION_SANITY_FAILURE, 0, &Req.Hdr), VINF_SUCCESS);
     148    RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1,
     149                                             TSTRTR0THREADPREEMPTION_SANITY_FAILURE, 0, &Req.Hdr), VINF_SUCCESS);
    150150    if (RT_FAILURE(rc))
    151151        return RTTestSummaryAndDestroy(hTest);
     
    161161    Req.Hdr.cbReq = sizeof(Req);
    162162    Req.szMsg[0] = '\0';
    163     RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,
    164                                              TSTR0THREADPREMEPTION_BASIC, 0, &Req.Hdr), VINF_SUCCESS);
     163    RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1,
     164                                             TSTRTR0THREADPREEMPTION_BASIC, 0, &Req.Hdr), VINF_SUCCESS);
    165165    if (RT_FAILURE(rc))
    166166        return RTTestSummaryAndDestroy(hTest);
     
    180180    Req.Hdr.cbReq = sizeof(Req);
    181181    Req.szMsg[0] = '\0';
    182     RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,
    183                                              TSTR0THREADPREMEPTION_IS_TRUSTY, 0, &Req.Hdr), VINF_SUCCESS);
     182    RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1,
     183                                             TSTRTR0THREADPREEMPTION_IS_TRUSTY, 0, &Req.Hdr), VINF_SUCCESS);
    184184    if (RT_FAILURE(rc))
    185185        return RTTestSummaryAndDestroy(hTest);
     
    212212        Req.Hdr.cbReq = sizeof(Req);
    213213        Req.szMsg[0] = '\0';
    214         RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,
    215                                                  TSTR0THREADPREMEPTION_IS_PENDING, 0, &Req.Hdr), VINF_SUCCESS);
     214        RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1,
     215                                                 TSTRTR0THREADPREEMPTION_IS_PENDING, 0, &Req.Hdr), VINF_SUCCESS);
    216216        if (    strcmp(Req.szMsg, "!cLoops=1\n")
    217217            ||  i >= 64)
     
    241241    Req.Hdr.cbReq = sizeof(Req);
    242242    Req.szMsg[0] = '\0';
    243     RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,
    244                                              TSTR0THREADPREMEPTION_NESTED, 0, &Req.Hdr), VINF_SUCCESS);
     243    RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1,
     244                                             TSTRTR0THREADPREEMPTION_NESTED, 0, &Req.Hdr), VINF_SUCCESS);
    245245    if (Req.szMsg[0] == '!')
    246246        RTTestIFailed("%s", &Req.szMsg[1]);
     
    261261        Req.Hdr.cbReq = sizeof(Req);
    262262        Req.szMsg[0] = '\0';
    263         RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,
    264                                                  TSTR0THREADPREEMPTION_CTXHOOKS, 0, &Req.Hdr), VINF_SUCCESS);
     263        RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1,
     264                                                 TSTRTR0THREADPREEMPTION_CTXHOOKS, 0, &Req.Hdr), VINF_SUCCESS);
    265265        if (RT_FAILURE(rc))
    266266            return RTTestSummaryAndDestroy(hTest);
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