提交 6695b520 编写于 作者: A Andre Weinand

fix Unit Tests for Windows

上级 936d5d8a
......@@ -375,7 +375,7 @@ export class DebugAdapter extends StreamDebugAdapter {
// select the right platform
let platformInfo: debug.IRawEnvAdapter;
if (platform.isWindows && !process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432')) {
platformInfo = result.winx86;
platformInfo = result.winx86 || result.win || result.windows;
} else if (platform.isWindows) {
platformInfo = result.win || result.windows;
} else if (platform.isMacintosh) {
......
......@@ -152,12 +152,10 @@ suite('Debug - Debugger', () => {
});
test('merge platform specific attributes', () => {
const ae2 = DebugAdapter.platformAdapterExecutable([extensionDescriptor1, extensionDescriptor2], 'mock');
assert.equal(ae2.command, platform.isLinux ? 'linuxRuntime' : (platform.isMacintosh ? 'osxRuntime' : 'winRuntime'));
const ae = DebugAdapter.platformAdapterExecutable([extensionDescriptor1, extensionDescriptor2], 'mock');
assert.equal(ae.command, platform.isLinux ? 'linuxRuntime' : (platform.isMacintosh ? 'osxRuntime' : 'winRuntime'));
const xprogram = platform.isLinux ? 'linuxProgram' : (platform.isMacintosh ? 'osxProgram' : 'winProgram');
assert.deepEqual(ae2.args, ['rarg', '/e2/b/c/' + xprogram, 'parg']);
assert.deepEqual(ae.args, ['rarg', '/e2/b/c/' + xprogram, 'parg']);
});
test('initial config file content', () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册