GPII-2212: Windows Language support.#132
Conversation
|
CI job failed. Please visit http://lists.gpii.net/pipermail/ci/ for more details. |
|
CI job failed. Please visit http://lists.gpii.net/pipermail/ci/ for more details. |
# Conflicts: # package.json
|
CI job passed. |
|
@stegru can you update this pull request against current master? |
# Conflicts: # gpii/node_modules/WindowsUtilities/WindowsUtilities.js # gpii/node_modules/processHandling/processHandling.js # gpii/node_modules/processHandling/test/testProcessHandling.js # package.json
|
CI job failed: https://ci.gpii.net/job/windows-tests/269/ |
# Conflicts: # gpii/node_modules/WindowsUtilities/WindowsUtilities.js # package.json
|
CI job passed: https://ci.gpii.net/job/windows-tests/301/ |
|
CI job failed: https://ci.gpii.net/job/windows-tests/337/ |
|
ok to test |
|
CI job passed: https://ci.gpii.net/job/windows-tests/338/ |
| ], | ||
| // https://msdn.microsoft.com/library/aa373344 | ||
| "GetApplicationRestartSettings": [ | ||
| //t.HANDLE, [ t.HANDLE, "char*", t.LPDWORD, t.LPDWORD ] |
There was a problem hiding this comment.
Is this comment left as a reminder or it's simply a typo?
| jqUnit.assertFalse("RmShutdown dwSessionHandle must be a number", isNaN(dwSessionHandle)); | ||
| jqUnit.assertEquals( | ||
| "RmShutdown lActionFlags must be RmShutdownOnlyRegistered", RmShutdownOnlyRegistered, lActionFlags); | ||
| // For some reason, ref doesn't like being required from this script. |
There was a problem hiding this comment.
I don't understand this comment, is there a problem with ref? It isn't required right now.
There was a problem hiding this comment.
I wanted to check if fnStatus is ref.NULL - but for some reason requiring 'ref' didn't work.
|
|
||
| var rmShutdown = gpii.windows.restartManager.RmShutdown.async; | ||
| var rmRestart = gpii.windows.restartManager.RmRestart; | ||
| teardowns.push(function () { |
There was a problem hiding this comment.
I feel like the fact that adding 'teardowns' to a global from specifics tests just doesn't feel right, doesn't jqUnit has any other alternative for achieving this?
There was a problem hiding this comment.
I'm confident there's not another way, otherwise @amb26 would have said something when reviewing the other times I've done this.
I guess an alternative would be to put the teardowns array in gpii.tests.windows.processHandling.
What do you think?
There was a problem hiding this comment.
would be great alternative if we could setup an array there for each function. At least will be a fixed pattern that we can follow, with an key based access based on test name maybe.
|
CI job failed: https://ci.gpii.net/job/windows-tests/356/ |
|
ok to test |
|
CI job failed: https://ci.gpii.net/job/windows-tests/357/ |
| jqUnit.asyncTest("Test restartProcesses", function () { | ||
| jqUnit.expect(2); | ||
|
|
||
| // Windows explorer does register as restartable, but restarting it (and potentially failing, because it's a test) |
There was a problem hiding this comment.
I'm doing the same exact thing here. Did you found any trouble restarting the explorer or do you thought that was simply excessive for a test?
There was a problem hiding this comment.
After talking, we can assume that as these are direct third party API calls that are being mocked, and that we are testing nothing more than that, we can assume that the API is working if it's properly called. If that isn't the case, then the problem isn't on our end.
|
This PR looks good to me. It should receive another review from @javihernandez or @amb26 for example in order to receive approval. |
GPII-2212: Fixed tests execution
|
CI job passed: https://ci.gpii.net/job/windows-tests/362/ |
# Conflicts: # gpii/node_modules/WindowsUtilities/WindowsUtilities.js # gpii/node_modules/processHandling/processHandling.js # gpii/node_modules/processHandling/test/testProcessHandling.js # package.json
|
CI job passed: https://ci.gpii.net/job/windows-tests/442/ |
|
CI job failed: https://ci.gpii.net/job/windows-tests/448/ |
|
updated universal.. ok to test |
|
CI job passed: https://ci.gpii.net/job/windows-tests/449/ |
# Conflicts: # README.md # gpii/node_modules/WindowsUtilities/WindowsUtilities.js # package.json
|
CI job failed: https://ci.gpii.net/job/windows-tests/556/ |
|
CI job failed: https://ci.gpii.net/job/windows-tests/559/ |
# Conflicts: # gpii/node_modules/processHandling/test/test-window.c # package.json
|
CI job passed: https://ci.gpii.net/job/windows-tests/560/ |
|
CI job failed: https://ci.gpii.net/job/windows-tests/572/ |
|
ok to test |
|
CI job passed: https://ci.gpii.net/job/windows-tests/573/ |
# Conflicts: # package.json
|
CI job failed: https://ci.gpii.net/job/windows-tests/596/ |
ok to test |
|
CI job passed: https://ci.gpii.net/job/windows-tests/597/ |
The code in this PR provides a way for a new language to be picked up without having to logout and in to the OS. It restarts explorer (the tasktray) [edited]
edit: Also includes various changes to the process handling to make use of the process reporter (#169)