Skip to content

Commit c7e53fa

Browse files
committed
Add GDB configuration for linux, move File declaration in test
1 parent d5e56e2 commit c7e53fa

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.vscode/launch.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,28 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "Launch Debug",
8+
"name": "Launch LLDB Debug",
99
"type": "cppdbg",
1010
"request": "launch",
1111
"program": "${workspaceFolder}/Bin/Debug/PlatformTests",
1212
"args": [],
1313
"stopAtEntry": false,
1414
"cwd": "${workspaceFolder}/Bin/Debug",
1515
"environment": [],
16-
"externalConsole": true,
16+
"externalConsole": false,
1717
"MIMode": "lldb"
18+
},
19+
{
20+
"name": "Launch GDB Debug",
21+
"type": "cppdbg",
22+
"request": "launch",
23+
"program": "${workspaceFolder}/Bin/Debug/PlatformTests",
24+
"args": [],
25+
"stopAtEntry": false,
26+
"cwd": "${workspaceFolder}/Bin/Debug",
27+
"environment": [],
28+
"externalConsole": false,
29+
"MIMode": "gdb"
1830
}
1931
]
2032
}

Source/Platform/Tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ TEST( PlatformFileTest, MakePathMakeFileAndMove )
195195
const std::string fullPath = "foo_folder2";
196196
MakePath( fullPath.c_str() );
197197

198-
File f;
199198
const std::string fileName( "foo3.data" );
200199
const std::string filePath = fullPath + PathSeparator + fileName;
201200

201+
File f;
202202
f.Open( filePath.c_str(), FileMode::Write );
203203
ASSERT_TRUE( f.IsOpen() );
204204
f.Close();

0 commit comments

Comments
 (0)