aboutsummaryrefslogtreecommitdiff
return_with_no_value_in_if_body: {
    options = {
        conditionals: true,
    }
    input: {
        function foo(bar) {
            if (bar) {
                return;
            } else {
                return 1;
            }
        }
    }
    expect: {
        function foo (bar) {
            return bar ? void 0 : 1;
        }
    }
}
td>Ludovic Courtès 2022-04-11tests: System tests really parameterize 'current-guix-package'....Until now, 'current-guix-package' was parameterized in the wrong context. Thus, 'current-guix' would end up building a variant of the 'guix' package instead of the package returned by 'channel-source->package', which is much less expensive to build. * etc/system-tests.scm (mparameterize): New macro. (tests-for-current-guix): Change the 'value' field of each <system-test> record to parameterize 'current-guix-package' for good. Ludovic Courtès