Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Adjust expected file size if ZapDisable is true #16240

Merged
merged 2 commits into from
Feb 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/src/tracing/eventpipesmoke/EventPipeSmoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ namespace Tracing.Tests
class EventPipeSmoke
{
private static int allocIterations = 10000;
private static int trivialSize = 0x100000;
private static bool zapDisabled = Int32.Parse(Environment.GetEnvironmentVariable("COMPlus_ZapDisable") ?? "0") > 0;
private static int trivialSize = zapDisabled ? 64 * 1024 : 1 * 1024 * 1024;

static int Main(string[] args)
{
Expand Down Expand Up @@ -39,6 +40,7 @@ static int Main(string[] args)
Console.WriteLine("\tEnd: Disable tracing.\n");

FileInfo outputMeta = new FileInfo(outputFilename);
Console.WriteLine("\tExpecting at least {0} bytes of data", trivialSize);
Console.WriteLine("\tCreated {0} bytes of data", outputMeta.Length);

bool pass = false;
Expand Down