# HG changeset patch # User "Patrik Svestka " # Date 1671183889 -3600 # Node ID b77fda6a2e9870608e6d9c1b89498803d90420fa # Parent ddf2eb8b3f1deadcecb30f516e4b66e8b4f47b78# Parent ca1a3083168ce3678aa8592df984978aa2589b09 Merge - commit more robust tests - commit fixes random test fails when creating a process diff -r ca1a3083168c -r b77fda6a2e98 RegressionTests__Win32OperatingSystemTest.st --- a/RegressionTests__Win32OperatingSystemTest.st Fri May 20 14:06:23 2022 +0200 +++ b/RegressionTests__Win32OperatingSystemTest.st Fri Dec 16 10:44:49 2022 +0100 @@ -5,6 +5,7 @@ COPYRIGHT (c) 2016 Jan Vrany COPYRIGHT (c) 2021 svestkap COPYRIGHT (c) 2021-2022 Patrik Svestka + COPYRIGHT (c) 2022 Jan Vrany All Rights Reserved This software is furnished under a license and may be used @@ -32,7 +33,7 @@ COPYRIGHT (c) Claus Gittinger / eXept Software AG COPYRIGHT (c) 2016 Jan Vrany COPYRIGHT (c) 2021 svestkap - COPYRIGHT (c) 2021-2022 Patrik Svestka + COPYRIGHT (c) 2021 Patrik Svestka All Rights Reserved This software is furnished under a license and may be used @@ -532,16 +533,14 @@ fork:true newPgrp:false inDirectory: Filename currentDirectory pathName - ] raise: Exception + ] raise: OsError suchThat: [ :ex | savedException := ex. - ex description includesString: 'File does not exist - CreateProcessW() has failed (File not found)' + ex errorSymbol == #'ERROR_FILE_NOT_FOUND' ]. - "/ the error is NOT proceedable - self deny: savedException willProceed "Created: / 21-10-2021 / 12:16:45 / svestkap" - "Modified: / 26-11-2021 / 09:51:15 / Patrik Svestka " + "Modified: / 25-08-2022 / 11:21:04 / jv" ! testExecCreatedProcessError2 @@ -590,13 +589,11 @@ ] raise: Exception suchThat: [ :ex | savedException := ex. - ex description includesString: 'Invalid Arguments - commandLineUni16 exceeded size limit (4096 characters) (Invalid parameter)'. + ex errorSymbol == #'ERROR_INVALID_PARAMETER' ]. - "/ the exception is NOT proceedable - self deny: savedException willProceed "Created: / 21-10-2021 / 12:16:53 / svestkap" - "Modified: / 20-05-2022 / 13:58:24 / Patrik Svestka " + "Modified: / 25-08-2022 / 11:22:06 / jv" ! testExecWithTooLongCommandLine2 @@ -648,13 +645,11 @@ ] raise: Exception suchThat: [ :ex | savedException := ex. - ex description includesString: 'Invalid Arguments - commandPathUni16 exceeded size limit (4096 characters) (Invalid parameter)'. + ex errorSymbol == #'ERROR_INVALID_PARAMETER' ]. - "/ the error is NOT proceedable - self deny: savedException willProceed "Created: / 21-10-2021 / 12:18:26 / svestkap" - "Modified: / 20-05-2022 / 13:58:09 / Patrik Svestka " + "Modified: / 25-08-2022 / 11:22:56 / jv" ! testExecWithTooLongCommandPath2 @@ -706,13 +701,11 @@ ] raise: Exception suchThat: [ :ex | savedException := ex. - ex description includesString: 'Invalid Arguments - dirNameUni16 exceeded size limit (4096 characters) (Invalid parameter)'. + ex errorSymbol == #'ERROR_INVALID_PARAMETER' ]. - "/ the exception is NOT proceedable - self deny: savedException willProceed "Created: / 21-10-2021 / 12:22:38 / svestkap" - "Modified: / 20-05-2022 / 13:32:50 / Patrik Svestka " + "Modified: / 25-08-2022 / 11:23:15 / jv" ! testExecWithTooLongDirName2