FileWrapperResourceTheoryTest fails if java.io.tmpdir is relative

Description

FileWrapperResourceTheoryTest fails if java.io.tmpdir is a relative path because the temporary directory root then also lacks a leading slash on Linux and the logic is incorrect, leading to a bad resource path.

Here are the failures seen without the patch, with -Djava.io.tmpdir=target. Notice the duplicated paths:

Environment

Linux

Status

Assignee

Ben Caradoc-Davies

Reporter

Ben Caradoc-Davies

Triage

None

Fix versions

Affects versions

2.13.1
2.12.3
2.14-RC

Components

Priority

Medium
Configure