Skip to content

Commit

Permalink
Adjust expected file size if ZapDisable is true (dotnet/coreclr#16240)
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/coreclr@591a8cd
  • Loading branch information
nategraf authored Feb 8, 2018
1 parent 41d6a75 commit b87b784
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit b87b784

Please sign in to comment.