diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-10-21 19:12:24 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-25 15:40:57 +0200 |
| commit | c1132b49314d96788d6467f64e567faa31e8e063 (patch) | |
| tree | 7da4d81b492f3b340a893a7cb0148f271b2196c0 /docs/linux/reporting_kernel_bugs.md | |
| parent | 8b121c0666450f5ce790b56bf9bb672c79d8b925 (diff) | |
pkg/osutil: slightly relaxed Abs check
Currently Abs captures pwd in init function and checks
that it's not changing over program execution.
However, in some test environments (bazel) we need to chdir
in test init function because the test process is started
in a wrong dir. This causes the check in Abs to fail.
Query the pwd lazily on the first Abs call.
This does not change behavior for Abs users, but allows
to change pwd in other init functions.
Diffstat (limited to 'docs/linux/reporting_kernel_bugs.md')
0 files changed, 0 insertions, 0 deletions
