VirtualBox

Changeset 102945 in vbox


Ignore:
Timestamp:
Jan 18, 2024 10:16:13 AM (14 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161173
Message:

Guest Control/Validation Kit: Try to fix execution tests on NT4 guests. See comment for details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r102918 r102945  
    31813181        atExec = [];
    31823182        if oTestVm.isWindows() or oTestVm.isOS2():
     3183            if oTestVm.sKind is 'WindowsNT4':
     3184                # For whatever reason NT4 SP6 (tst-nt4sp6) returns exit code 2 for existing *and* non-existing files.
     3185                # I've manually checked that on the VM itself, so this is *not* a bug in the Guest Control code.
     3186                # So we have to tweak the expected exit codes here in order to make the following tests pass.
     3187                iExitCodeForExistingFiles    = 2
     3188                iExitCodeForNonExistingFiles = 2
     3189            else:
     3190                iExitCodeForExistingFiles    = 0
     3191                iExitCodeForNonExistingFiles = 1
    31833192            atExec += [
    31843193                # Basic execution.
     
    31863195                  tdTestResultExec(fRc = True) ],
    31873196                [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', sFileForReading ]),
    3188                   tdTestResultExec(fRc = True) ],
     3197                  tdTestResultExec(fRc = True, iExitCode = iExitCodeForExistingFiles) ],
    31893198                [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', sSystemDir + '\\nonexist.dll' ]),
    3190                   tdTestResultExec(fRc = True, iExitCode = 1) ],
     3199                  tdTestResultExec(fRc = True, iExitCode = iExitCodeForNonExistingFiles) ],
    31913200                [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', '/wrongparam' ]),
    31923201                  tdTestResultExec(fRc = True, iExitCode = 1) ],
     
    31973206                  tdTestResultExec(fRc = True) ],
    31983207                [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', 'stdout-non-existing' ]),
    3199                   tdTestResultExec(fRc = True, iExitCode = 1) ],
     3208                  tdTestResultExec(fRc = True, iExitCode = iExitCodeForNonExistingFiles) ],
    32003209                # StdErr.
    32013210                [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', sSystemDir ]),
    32023211                  tdTestResultExec(fRc = True) ],
    32033212                [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', 'stderr-non-existing' ]),
    3204                   tdTestResultExec(fRc = True, iExitCode = 1) ],
     3213                  tdTestResultExec(fRc = True, iExitCode = iExitCodeForNonExistingFiles) ],
    32053214                # StdOut + StdErr.
    32063215                [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', sSystemDir ]),
    32073216                  tdTestResultExec(fRc = True) ],
    32083217                [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', 'stdouterr-non-existing' ]),
    3209                   tdTestResultExec(fRc = True, iExitCode = 1) ],
     3218                  tdTestResultExec(fRc = True, iExitCode = iExitCodeForNonExistingFiles) ],
    32103219            ];
    32113220
Note: See TracChangeset for help on using the changeset viewer.

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