Custom asset handler messes unit test summary report
ric maicle
rmaicle at gmail.com
Mon Feb 24 00:50:38 UTC 2020
[dmd 2.090.1 linux 64-bit]
The following code does not report the correct unit test summary.
The report says 1 unit test passed.
~~~~~
shared static this() {
import core.exception;
assertHandler(&cah);
}
void
cah(string file, ulong line, string msg) nothrow {
import core.stdc.stdio: printf;
printf("==============================\n");
printf("Assert error: %s %d: %s\n", file.ptr, line, msg.ptr);
printf("==============================\n");
}
unittest {
assert(false);
}
~~~~~
More information about the Digitalmars-d-learn
mailing list