Martin Sustrik
Martin Sustrik
Is there a way to mock a system package, e.g. net.Addr? Manually, I would run the following command: `mockgen -destination=addr.go net Addr` In bazel_gomock, however, the source is a bazel...
Currently, there's no stack protection when the coroutine is launched by go_mem(). While we can't do perfect stack protection in this case we can at least check whether current stack...
Following program fails when compiled with gcc 4.9: ```c #include #include #define DILL_DISABLE_RAW_NAMES #include "assert.h" #include "../libdill.h" #include "../utils.h" int mock_tcp_connect(const struct dill_ipaddr *addr) { int rc = dill_msleep(dill_now() +...
This is significantly slower. The test blocks for couple of seconds.
This bug was introduced by a316744bc5 --- This change is [](https://reviewable.io/reviews/fdio/vpp/29)
Test program: ``` #include "dns/dns.c" int main() { int rc; struct dns_resolv_conf *dns_conf = dns_resconf_local(&rc); assert(dns_conf); struct dns_hosts *dns_hosts = dns_hosts_local(&rc); assert(dns_hosts); struct dns_hints *dns_hints = dns_hints_local(dns_conf, &rc); assert(dns_hints); struct...
I have a test that prints out current directory. rundir is not set in go_test(). I get the following output: ``` $ bazel run //go/border/rpkt:go_default_test ... /home/sustrik/.cache/bazel/_bazel_sustrik/329223ef44c790813be2d08fc6e228b5/execroot/__main__/bazel-out/k8-fastbuild/bin/go/border/rpkt/linux_amd64_stripped/go_default_test.runfiles/__main__ ``` Apparently it...
``` // Code generated from /home/sustrik/.cache/bazel/_bazel_sustrik/329223ef44c790813be2d08fc6e228b5/sandbox/linux-sandbox/832/execroot/__main__/Foo.g4 by ANTLR 4.7.2. DO NOT EDIT. ``` Would it be possible to change that to: ``` // Code generated from Foo.g4 by ANTLR 4.7.2....