Skip to content

Commit eae6151

Browse files
committed
Merge pull request #1 from MartinNowak/fix_gc_bench
missing executeArgs for benchmarks
2 parents 5a1b936 + 3f50d37 commit eae6151

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

benchmark/runbench.d

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ string genTempFilename(string result_path)
204204

205205
int system(string command)
206206
{
207-
if (!command) return std.c.process.system(null);
207+
if (command.empty) return std.c.process.system(null);
208208
const commandz = toStringz(command);
209209
auto status = std.c.process.system(commandz);
210210
if (status == -1) return status;
@@ -427,7 +427,7 @@ int runTest(const ref EnvData envData, string tst, string test_args)
427427
}
428428
writef(" . %-16s ", input_file);
429429
fflush(core.stdc.stdio.stdout);
430-
430+
431431
if (testArgs.disabled)
432432
writefln("!!! [DISABLED: %s]", testArgs.disabled_reason);
433433

@@ -514,7 +514,7 @@ int runTest(const ref EnvData envData, string tst, string test_args)
514514
}
515515

516516
string command = test_app_dmd;
517-
if (test_args)
517+
if (!test_args.empty)
518518
command ~= " " ~ test_args;
519519
else if (testArgs.executeArgs)
520520
command ~= " " ~ testArgs.executeArgs;
@@ -595,4 +595,3 @@ int runTest(const ref EnvData envData, string tst, string test_args)
595595

596596
return 0;
597597
}
598-

0 commit comments

Comments
 (0)