[tools] Let gcc work in the sandbox.

This commit is contained in:
Andrew Hamilton 2016-11-27 23:36:55 +01:00
parent 2b08e4d490
commit 6489a11d4c
2 changed files with 3 additions and 1 deletions

View file

@ -59,6 +59,7 @@ class SandboxFs:
def __init__(self, holes=None):
self.holes = [] if holes is None else holes
self.holes += ["/dev/null"]
for hole in self.holes:
if not hole.startswith("/"):
raise ValueError("Holes must be absolute paths: %r" % hole)