Changeset 102945 in vbox
- Timestamp:
- Jan 18, 2024 10:16:13 AM (14 months ago)
- svn:sync-xref-src-repo-rev:
- 161173
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r102918 r102945 3181 3181 atExec = []; 3182 3182 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 3183 3192 atExec += [ 3184 3193 # Basic execution. … … 3186 3195 tdTestResultExec(fRc = True) ], 3187 3196 [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', sFileForReading ]), 3188 tdTestResultExec(fRc = True ) ],3197 tdTestResultExec(fRc = True, iExitCode = iExitCodeForExistingFiles) ], 3189 3198 [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', sSystemDir + '\\nonexist.dll' ]), 3190 tdTestResultExec(fRc = True, iExitCode = 1) ],3199 tdTestResultExec(fRc = True, iExitCode = iExitCodeForNonExistingFiles) ], 3191 3200 [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', '/wrongparam' ]), 3192 3201 tdTestResultExec(fRc = True, iExitCode = 1) ], … … 3197 3206 tdTestResultExec(fRc = True) ], 3198 3207 [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', 'stdout-non-existing' ]), 3199 tdTestResultExec(fRc = True, iExitCode = 1) ],3208 tdTestResultExec(fRc = True, iExitCode = iExitCodeForNonExistingFiles) ], 3200 3209 # StdErr. 3201 3210 [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', sSystemDir ]), 3202 3211 tdTestResultExec(fRc = True) ], 3203 3212 [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', 'stderr-non-existing' ]), 3204 tdTestResultExec(fRc = True, iExitCode = 1) ],3213 tdTestResultExec(fRc = True, iExitCode = iExitCodeForNonExistingFiles) ], 3205 3214 # StdOut + StdErr. 3206 3215 [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', sSystemDir ]), 3207 3216 tdTestResultExec(fRc = True) ], 3208 3217 [ tdTestExec(sCmd = sImageOut, asArgs = [ sImageOut, '/C', 'dir', '/S', 'stdouterr-non-existing' ]), 3209 tdTestResultExec(fRc = True, iExitCode = 1) ],3218 tdTestResultExec(fRc = True, iExitCode = iExitCodeForNonExistingFiles) ], 3210 3219 ]; 3211 3220
Note:
See TracChangeset
for help on using the changeset viewer.