Changeset 80834 in vbox
- Timestamp:
- Sep 16, 2019 8:23:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r80829 r80834 2131 2131 Tests the guest session environment changes. 2132 2132 """ 2133 enmErrInvalidVarName = vbox.ComError.VBOX_E_IPRT_ERROR if self.oTstDrv.fpApiRev >= 6.1 else vbox.ComError.E_INVALIDARG; 2133 2134 aoTests = [ 2134 2135 # Check basic operations. … … 2188 2189 # Invalid variable names. 2189 2190 tdTestSessionEx([ 2190 tdStepSessionSetEnv('', 'FOO', vbox.ComError.E_INVALIDARG),2191 tdStepSessionSetEnv('', 'FOO', enmErrInvalidVarName), 2191 2192 tdStepSessionCheckEnv(), 2192 2193 tdStepRequireMinimumApiVer(5.0), # 4.3 is too relaxed checking input! 2193 tdStepSessionBulkEnv(['', 'foo=bar'], vbox.ComError.E_INVALIDARG),2194 tdStepSessionBulkEnv(['', 'foo=bar'], enmErrInvalidVarName), 2194 2195 tdStepSessionCheckEnv(), 2195 tdStepSessionSetEnv('FOO=', 'BAR', vbox.ComError.E_INVALIDARG),2196 tdStepSessionSetEnv('FOO=', 'BAR', enmErrInvalidVarName), 2196 2197 tdStepSessionCheckEnv(), 2197 2198 ]), … … 2220 2221 # Leading '=' in the name is okay for windows guests in 6.1 and later (for driver letter CWDs). 2221 2222 if (self.oTstDrv.fpApiVer < 6.1 and self.oTstDrv.fpApiVer >= 5.0) or not oTestVm.isWindows(): 2222 aoTests.append(tdTestSessionEx([tdStepSessionSetEnv('=', '===', vbox.ComError.E_INVALIDARG),2223 aoTests.append(tdTestSessionEx([tdStepSessionSetEnv('=', '===', enmErrInvalidVarName), 2223 2224 tdStepSessionCheckEnv(), 2224 tdStepSessionSetEnv('=FOO', 'BAR', vbox.ComError.E_INVALIDARG),2225 tdStepSessionSetEnv('=FOO', 'BAR', enmErrInvalidVarName), 2225 2226 tdStepSessionCheckEnv(), 2226 tdStepSessionBulkEnv(['=', 'foo=bar'], vbox.ComError.E_INVALIDARG),2227 tdStepSessionBulkEnv(['=', 'foo=bar'], enmErrInvalidVarName), 2227 2228 tdStepSessionCheckEnv(), 2228 tdStepSessionBulkEnv(['=FOO', 'foo=bar'], vbox.ComError.E_INVALIDARG),2229 tdStepSessionBulkEnv(['=FOO', 'foo=bar'], enmErrInvalidVarName), 2229 2230 tdStepSessionCheckEnv(), 2230 2231 ]));
Note:
See TracChangeset
for help on using the changeset viewer.