-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change #getTempPath:buffer: on WinPlatform to use ‘GetTempPathW’ instead of ‘GetTempPath2W’ #16342
Change #getTempPath:buffer: on WinPlatform to use ‘GetTempPathW’ instead of ‘GetTempPath2W’ #16342
Conversation
…tead of ‘GetTempPath2W’.
I converted this to a draft. I expect this to fix the issue of the Windows test run timing out (issue #15104), but having a build in which that still times out after pull request #16341 is merged would allow checking that the test run’s |
In build 5, there no longer was a SymbolNotFoundError in the |
1d4f8be
to
c54c225
Compare
… of the variable.
…ne in commit 15c6cf4 (“[…]Activate strict FFI[…]”).
…emoved from the environment again if it was absent.
As can be seen in the ‘Tests-windows-64-Epicea-Tests-Test.xml’ of build 9, the PrimitiveFailed was due to the argument to
That was in turn due to The temporary additional commit to get the more detailed stack trace has been removed. This can be merged now. |
…nvironmentTest to changes done in commit 2ab718d (“Fixed #setEnv:value:during: on OSEnvironment to restore the […]”).
There are some failing tests in build 15. See issue #16119 for the SocketStreamTest failures, and issue #16280 for the ReleaseTest failures. The other test failures are not caused by the changes in this pull request, but show up because the Windows test run no longer times out. |
Is this ready to merge? @Rinzwind @MarcusDenker Do we merge with the failing windows tests? They seems linked to the strict FFI that @guillep enabled. (I think, I'm not sure since I never really used FFI :) ) |
It’s ready to be merged yes. I opened NewTools pull requests #728 and #729 to fix the ‘Windows64.NewTools.FileBrowser.Tests’ failures. |
The function signature I used in NewTools pull request #729 was not correct, I opened another pull request to (try to) fix it: NewTools pull request #730. I’m not sure why using |
All three of the failing tests in build 21 are in SocketStreamTest (issue #16119). |
This pull request changes
#getTempPath:buffer:
on WinPlatform to use ‘GetTempPathW’ instead of ‘GetTempPath2W’ for compatibility with versions of Windows older than ‘Windows 10 Build 20348’ or ‘Windows Server Build 20348’.See the ‘Requirements’ for ‘GetTempPathW’, the ‘Requirements’ for ‘GetTempPath2W’ and my earlier comment in pull request #13777.
The documentation for ‘GetTempPath2W’ indicates it is equivalent to ‘GetTempPathW’ for non-SYSTEM processes: “When calling this function from a process running as SYSTEM it will return the path C:\Windows\SystemTemp, which is inaccessible to non-SYSTEM processes. For non-SYSTEM processes, GetTempPath2 will behave the same as GetTempPath.” As for how ‘GetTempPath2’ is related to ‘GetTempPath2W’: “The fileapi.h header defines GetTempPath2 as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. […] For more information, see Conventions for Function Prototypes.”