Skip to content

Add another test case to issue 29 test

Carlin St Pierre requested to merge aruthane/silly:issue_29 into master

This PR adds another unittest block to the tests for issue 29.

Having only a single unit test that is not expected to be run will cause the following failure.

object.Exception@/dlang/dmd-2.088.1/linux/bin64/../../src/phobos/std/parallelism.d(1594): workUnitSize must be > 0.
----------------
/dlang/dmd-2.088.1/linux/bin64/../../src/phobos/std/exception.d:515 pure @safe void std.exception.bailOut!(Exception).bailOut(immutable(char)[], ulong, scope const(char)[]) [0x55c2cb2d5116]
/dlang/dmd-2.088.1/linux/bin64/../../src/phobos/std/exception.d:436 pure @safe bool std.exception.enforce!().enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x55c2cb2d5092]
/dlang/dmd-2.088.1/linux/bin64/../../src/phobos/std/parallelism.d:1594 pure @safe std.parallelism.ParallelForeach!(silly.Test[]).ParallelForeach std.parallelism.TaskPool.parallel!(silly.Test[]).parallel(silly.Test[], ulong) [0x55c2cb2f701b]
/dlang/dmd-2.088.1/linux/bin64/../../src/phobos/std/parallelism.d:1608 pure @safe std.parallelism.ParallelForeach!(silly.Test[]).ParallelForeach std.parallelism.TaskPool.parallel!(silly.Test[]).parallel(silly.Test[]) [0x55c2cb2f6a93]
silly.d:100 core.runtime.UnitTestResult silly._sharedStaticCtor_L24_C1().__lambda1() [0x55c2cb2f160f]
??:? runModuleUnitTests [0x55c2cb34e939]
??:? void rt.dmain2._d_run_main2(char[][], ulong, extern (C) int function(char[][])*).runAll() [0x55c2cb32aa38]
??:? void rt.dmain2._d_run_main2(char[][], ulong, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x55c2cb32a9c4]
??:? _d_run_main2 [0x55c2cb32a92d]
??:? _d_run_main [0x55c2cb32a6e9]
??:? main [0x55c2cb2f11d9]
??:? __libc_start_main [0x7f23f7b692e0]
Program exited with code 1

Merge request reports