You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* Added support for running individual unit tests from command line [CL 32188443 by henrik karlsson in ue5-main branch]
26 lines
546 B
C++
26 lines
546 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "UbaTestAll.h"
|
|
|
|
void segfault_sigaction(int signal, siginfo_t* si, void* arg)
|
|
{
|
|
uba::UbaAssert("Segmentation fault", "", 0, "", -1);
|
|
}
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
#if !__has_feature(thread_sanitizer)
|
|
struct sigaction sa;
|
|
memset(&sa, 0, sizeof(struct sigaction));
|
|
sigemptyset(&sa.sa_mask);
|
|
sa.sa_sigaction = segfault_sigaction;
|
|
sa.sa_flags = SA_SIGINFO;
|
|
sigaction(SIGSEGV, &sa, NULL);
|
|
#endif
|
|
|
|
using namespace uba;
|
|
if (!RunTests(argc, argv))
|
|
return -1;
|
|
return 0;
|
|
}
|