VirtualBox

Changeset 107556 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 9, 2025 8:43:45 AM (10 days ago)
Author:
vboxsync
Message:

src/VBox/ValidationKit/utils/storage/IoPerf.cpp: Fixed warnings found by Parfait (assignment unused). jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/storage/IoPerf.cpp

    r106061 r107556  
    12311231     */
    12321232    int rc = RTTestInitAndCreate("IoPerf", &g_hTest);
    1233     if (rc)
    1234         return rc;
     1233    if (RT_FAILURE(rc))
     1234        return RTEXITCODE_FAILURE;
    12351235
    12361236    /*
     
    13981398                rc = ioPerfDoTestMulti();
    13991399
     1400            if (RT_FAILURE(rc))
     1401                RTTestFailed(g_hTest, "ioPerfDoTestXXX -> %Rrc\n", rc);
     1402
    14001403            g_szDir[g_cchDir] = '\0';
    1401             rc = RTDirRemoveRecursive(g_szDir, RTDIRRMREC_F_CONTENT_AND_DIR | (g_fRelativeDir ? RTDIRRMREC_F_NO_ABS_PATH : 0));
    1402             if (RT_FAILURE(rc))
    1403                 RTTestFailed(g_hTest, "RTDirRemoveRecursive(%s,) -> %Rrc\n", g_szDir, rc);
     1404            int rc2 = RTDirRemoveRecursive(g_szDir,
     1405                                           RTDIRRMREC_F_CONTENT_AND_DIR | (g_fRelativeDir ? RTDIRRMREC_F_NO_ABS_PATH : 0));
     1406            if (RT_FAILURE(rc2))
     1407                RTTestFailed(g_hTest, "RTDirRemoveRecursive(%s,) -> %Rrc\n", g_szDir, rc2);
    14041408        }
    14051409        else
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