VirtualBox

Ignore:
Timestamp:
Dec 14, 2010 1:31:41 PM (14 years ago)
Author:
vboxsync
Message:

RTStrVersionCompare: Made the a trailing 'r9' indicate of a sub-string be taken to mean an SVN revision even if the punctuation is not there. One related bugfix in the handling of BETA1.

File:
1 edited

Legend:

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

    r28800 r35076  
    8686        { "3.1.0_BETA-r12345",          "3.1.2",                            -1 },
    8787        { "3.1.0_BETA1r12345",          "3.1.0",                            -1 },
    88         { "3.1.0_BETAr12345",           "3.1.0",                             1 }, /* not considered a beta because of missing punctuation */
     88        { "3.1.0_BETAr12345",           "3.1.0",                            -1 },
    8989        { "3.1.0_BETA-r12345",          "3.1.0",                            -1 },
    9090        { "3.1.0_BETA-r12345",          "3.1.0",                            -1 },
     
    9999        { "3.1.0_BETA2",                "3.1.0_ABC",                        -1 }, /* ABC isn't indicating a prerelease, BETA does */
    100100        { "3.1.0_BETA",                 "3.1.0_ATEB",                       -1 },
     101        { "4.0.0_ALPHAr68482",          "4.0.0_ALPHAr68483",                -1 },
     102        { "4.0.0_ALPHA1r68482",         "4.0.0_ALPHAr68482",                 0 },
     103        { "4.0.0_ALPHA-r68482",         "4.0.0_ALPHAr68482",                 0 },
     104        { "4.0.0_ALPHAr68483",          "4.0.0_BETAr68783",                 -1 },
     105        { "4.0.0_ALPHAr68483",          "4.0.0_BETA1r68783",                -1 },
     106        { "4.0.0_ALPHAr68483",          "4.0.0_BETA2r68783",                -1 },
     107        { "4.0.0_ALPHAr68483",          "4.0.0_BETA2r68784",                -1 },
    101108    };
    102109    for (unsigned iTest = 0; iTest < RT_ELEMENTS(aTests); iTest++)
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