-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some of our higher hitting crashes (#2719)
- Loading branch information
Showing
7 changed files
with
194 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Site BuildName="(empty)" | ||
BuildStamp="20220830-1901-Experimental" | ||
Name="(empty)" | ||
Generator="ctest-3.23.2" | ||
CompilerName="" | ||
CompilerVersion="" | ||
OSName="Windows" | ||
Hostname="localhost" | ||
OSRelease=" Professional" | ||
OSVersion=" (Build 19044)" | ||
OSPlatform="AMD64" | ||
Is64Bits="1" | ||
VendorString="GenuineIntel" | ||
VendorID="Intel Corporation" | ||
FamilyID="6" | ||
ModelID="15" | ||
ProcessorCacheSize="-1" | ||
NumberOfLogicalCPU="8" | ||
NumberOfPhysicalCPU="4" | ||
TotalVirtualMemory="24492" | ||
TotalPhysicalMemory="16300" | ||
LogicalProcessorsPerPhysical="2" | ||
ProcessorClockFrequency="3491" | ||
> | ||
<Testing> | ||
<StartDateTime>Aug 30 12:01 Pacific Daylight Time</StartDateTime> | ||
<StartTestTime>1661886092</StartTestTime> | ||
<TestList> | ||
<Test>./test1</Test> | ||
<Test>./test2</Test> | ||
</TestList> | ||
<Test Status="passed"> | ||
<Name>test1</Name> | ||
<Path>.</Path> | ||
<FullName>./test1</FullName> | ||
<FullCommandLine>D:\cmaketest\build\Debug\mytest.exe</FullCommandLine> | ||
<Results> | ||
<NamedMeasurement type="numeric/double" name="Execution Time"> | ||
<Value>5.22339</Value> | ||
</NamedMeasurement> | ||
<NamedMeasurement type="numeric/double" name="Processors"> | ||
<Value>1</Value> | ||
</NamedMeasurement> | ||
<NamedMeasurement type="text/string" name="Completion Status"> | ||
<Value>Completed</Value> | ||
</NamedMeasurement> | ||
<NamedMeasurement type="text/string" name="Command Line"> | ||
<Value>D:\cmaketest\build\Debug\mytest.exe</Value> | ||
</NamedMeasurement> | ||
<NamedMeasurement type="text/string" name="Environment"> | ||
<Value>#CTEST_RESOURCE_GROUP_COUNT=</Value> | ||
</NamedMeasurement> | ||
<Measurement> | ||
<Value>D:/cmaketest/build/Debug/mytest.exe | ||
debug | ||
</Value> | ||
</Measurement> | ||
</Results> | ||
</Test> | ||
<Test Status="failed"> | ||
<Name>test2</Name> | ||
<Path>.</Path> | ||
<FullName>./test2</FullName> | ||
<FullCommandLine>D:\cmaketest\build\Debug\mytest.exe</FullCommandLine> | ||
<Results> | ||
<NamedMeasurement type="numeric/double" name="Execution Time"> | ||
<Value>5.02486</Value> | ||
</NamedMeasurement> | ||
<NamedMeasurement type="numeric/double" name="Processors"> | ||
<Value>1</Value> | ||
</NamedMeasurement> | ||
<NamedMeasurement type="text/string" name="Completion Status"> | ||
<Value>Completed</Value> | ||
</NamedMeasurement> | ||
<NamedMeasurement type="text/string" name="Command Line"> | ||
<Value>D:\cmaketest\build\Debug\mytest.exe</Value> | ||
</NamedMeasurement> | ||
<NamedMeasurement type="text/string" name="Environment"> | ||
<Value>#CTEST_RESOURCE_GROUP_COUNT=</Value> | ||
</NamedMeasurement> | ||
<Measurement> | ||
<Value>D:/cmaketest/build/Debug/mytest.exe | ||
debug | ||
</Value> | ||
</Measurement> | ||
</Results> | ||
</Test> | ||
<EndDateTime>Aug 30 12:01 Pacific Daylight Time</EndDateTime> | ||
<EndTestTime>1661886103</EndTestTime> | ||
<ElapsedMinutes>0</ElapsedMinutes> | ||
</Testing> | ||
</Site> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Site BuildName="(empty)" | ||
BuildStamp="20220830-1901-Experimental" | ||
Name="(empty)" | ||
Generator="ctest-3.23.2" | ||
CompilerName="" | ||
CompilerVersion="" | ||
OSName="Windows" | ||
Hostname="localhost" | ||
OSRelease=" Professional" | ||
OSVersion=" (Build 19044)" | ||
OSPlatform="AMD64" | ||
Is64Bits="1" | ||
VendorString="GenuineIntel" | ||
VendorID="Intel Corporation" | ||
FamilyID="6" | ||
ModelID="15" | ||
ProcessorCacheSize="-1" | ||
NumberOfLogicalCPU="8" | ||
NumberOfPhysicalCPU="4" | ||
TotalVirtualMemory="24492" | ||
TotalPhysicalMemory="16300" | ||
LogicalProcessorsPerPhysical="2" | ||
ProcessorClockFrequency="3491" | ||
> | ||
<Testing> | ||
<StartDateTime>Aug 30 16:26 Pacific Daylight Time</StartDateTime> | ||
<StartTestTime>1661902010</StartTestTime> | ||
<TestList/> | ||
<EndDateTime>Aug 30 16:26 Pacific Daylight Time</EndDateTime> | ||
<EndTestTime>1661902010</EndTestTime> | ||
<ElapsedMinutes>0</ElapsedMinutes> | ||
</Testing> | ||
</Site> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { readTestResultsFile } from "@cmt/ctest"; | ||
import { expect, getTestResourceFilePath } from "@test/util"; | ||
|
||
suite('CTest test', () => { | ||
test('Parse XML test results', async () => { | ||
const result = await readTestResultsFile(getTestResourceFilePath('TestResults.xml')); | ||
expect(result!.site.testing.testList.length).to.eq(2); | ||
expect(result!.site.testing.test[0].name).to.eq('test1'); | ||
expect(result!.site.testing.test[0].status).to.eq('passed'); | ||
expect(result!.site.testing.test[1].name).to.eq('test2'); | ||
expect(result!.site.testing.test[1].status).to.eq('failed'); | ||
}); | ||
|
||
test('CTest enabled, but no tests', async () => { | ||
const result = await readTestResultsFile(getTestResourceFilePath('TestResults2.xml')); | ||
expect(result!.site.testing.testList.length).to.eq(0); | ||
expect(result!.site.testing.test.length).to.eq(0); | ||
}); | ||
|
||
test('Bad test results file', async () => { | ||
const result = await readTestResultsFile(getTestResourceFilePath('TestCMakeCache.txt')); | ||
expect(result).to.eq(undefined); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters