Skip to content

Random folder named test on the PATH breaks TerminalBuilder #946

@lrytz

Description

@lrytz

The new detection of utilities added in 1ac766f picks up folders named test on the path.

This broke sbt for me (version 1.9.9 upgraded JLine from 3.19.0 to 3.24.1). Even under FINEST logging there's no related message, exceptions are silenced:

try {
Process p = new ProcessBuilder(OSUtils.TEST_COMMAND, "-t", Integer.toString(stream.ordinal()))
.inheritIO()
.start();
return p.waitFor() == 0;
} catch (Throwable t) {
// ignore
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions