| H A D | binfmt_script | 36 # @leading: any leading whitespace before the executable path 43 def test(name, size, good=True, leading="", root="./", target="/perl", argument 52 remaining = size - len(hashbang) - len(leading) - len(root) - len(target) - len(arg) 67 buf=hashbang + leading + root + middle + target + arg + newline 114 # Same as above, but with leading whitespace. 115 test(name="exact-space", size=SIZE, good=False, leading=" ") 119 # A good path, but it gets truncated due to leading whitespace. 120 test(name="truncated", size=SIZE+17, good=False, leading=" " * 19) 128 test(name="newline-prefix", size=SIZE-1, good=False, leading="\n", 135 test(name="test.pl", size=439, leading=" ", [all …]
|