-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (28 loc) · 730 Bytes
/
Copy pathmain.cpp
File metadata and controls
33 lines (28 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// BlockAllocator.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "UnitTests.h"
#include "BlockAllocator_UnitTests.h"
#include "PsyncArray_UnitTests.h"
int _tmain(int argc, _TCHAR* argv[])
{
tUnitTestExecutor test;
WCHAR failmsg[512];
{
IUnitTest& unittest=*(new tBlockAllocator::UnitTest());
const int testnumfailed=test.DoUnitTest(unittest,_countof(failmsg),failmsg);
if(testnumfailed!=-1)
{
std::cout<<failmsg<<"\n";
}
}
{
IUnitTest& unittest=*(new tPArray_UnitTest());
const int testnumfailed=test.DoUnitTest(unittest,_countof(failmsg),failmsg);
if(testnumfailed!=-1)
{
std::cout<<failmsg<<"\n";
}
}
return 0;
}