Skip to content

Commit 8a107f3

Browse files
author
dse
committed
Stability tests improved, compile warning fixed.
1 parent c9c19fa commit 8a107f3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/embed_tests/Program.cs

+7-8
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,16 @@ public static int Main(string[] args)
3838
dynamic os = PythonEngine.ImportModule("os");
3939
os.environ["PATH"] = new PyString(pathEnv);
4040
}
41-
} while (true);
41+
}
42+
while (!Console.KeyAvailable);
4243

4344
return result;
4445
}
45-
else
46-
{
47-
return new AutoRun(typeof(Program).Assembly).Execute(
48-
args,
49-
new ExtendedTextWrapper(Console.Out),
50-
Console.In);
51-
}
46+
47+
return new AutoRun(typeof(Program).Assembly).Execute(
48+
args,
49+
new ExtendedTextWrapper(Console.Out),
50+
Console.In);
5251
}
5352
}
5453
}

0 commit comments

Comments
 (0)