Skip to content

Commit bd2b375

Browse files
committed
Tests: fix naming convention
1 parent 7bd9da7 commit bd2b375

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

Process.Extensions.Tests.Client/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
#include "tests\stdcallTests.h"
99
#include "tests\thiscallTests.h"
1010

11-
bool m_isRunning = true;
11+
bool g_isRunning = true;
1212

1313
static void signalExit()
1414
{
15-
m_isRunning = false;
15+
g_isRunning = false;
1616
}
1717

1818
static void runAllTests()
@@ -25,7 +25,7 @@ static void runAllTests()
2525

2626
static void linkAll()
2727
{
28-
if (!m_isRunning)
28+
if (!g_isRunning)
2929
return;
3030

3131
signalExit();
@@ -35,7 +35,7 @@ static void linkAll()
3535

3636
int main()
3737
{
38-
while (m_isRunning)
38+
while (g_isRunning)
3939
{
4040
if (GetAsyncKeyState(VK_F1) & 0x8000)
4141
runAllTests();

Process.Extensions.Tests.Client/tests/cdeclTests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "testContext.h"
22

3-
testContext m_cdeclTestStruct;
3+
testContext g_cdeclTestStruct;
44

55
static bool __cdecl cdeclTestNoArguments()
66
{
@@ -21,9 +21,9 @@ static testContext __cdecl cdeclTestReturnStruct()
2121

2222
static testContext* __cdecl cdeclTestReturnStructPtr()
2323
{
24-
m_cdeclTestStruct = testContext(1, 2, 3);
24+
g_cdeclTestStruct = testContext(1, 2, 3);
2525

26-
return &m_cdeclTestStruct;
26+
return &g_cdeclTestStruct;
2727
}
2828

2929
static int __cdecl cdeclTestStructAsArgument(testContext in_ctx)

Process.Extensions.Tests.Client/tests/fastcallTests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "testContext.h"
22

3-
testContext m_fastcallTestStruct;
3+
testContext g_fastcallTestStruct;
44

55
static bool __fastcall fastcallTestNoArguments()
66
{
@@ -21,9 +21,9 @@ static testContext __fastcall fastcallTestReturnStruct()
2121

2222
static testContext* __fastcall fastcallTestReturnStructPtr()
2323
{
24-
m_fastcallTestStruct = testContext(1, 2, 3);
24+
g_fastcallTestStruct = testContext(1, 2, 3);
2525

26-
return &m_fastcallTestStruct;
26+
return &g_fastcallTestStruct;
2727
}
2828

2929
static int __fastcall fastcallTestStructAsArgument(testContext in_ctx)

Process.Extensions.Tests.Client/tests/stdcallTests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "testContext.h"
22

3-
testContext m_stdcallTestStruct;
3+
testContext g_stdcallTestStruct;
44

55
static bool __stdcall stdcallTestNoArguments()
66
{
@@ -21,9 +21,9 @@ static testContext __stdcall stdcallTestReturnStruct()
2121

2222
static testContext* __stdcall stdcallTestReturnStructPtr()
2323
{
24-
m_stdcallTestStruct = testContext(1, 2, 3);
24+
g_stdcallTestStruct = testContext(1, 2, 3);
2525

26-
return &m_stdcallTestStruct;
26+
return &g_stdcallTestStruct;
2727
}
2828

2929
static int __stdcall stdcallTestStructAsArgument(testContext in_ctx)

0 commit comments

Comments
 (0)