class Test { static function error(msg, code) { Sys.stderr().writeString(msg); Sys.exit(code); } static function test(file:String, pos:Int, shouldExist:Bool) { var arg = '$file@$pos'; var proc = new sys.io.Process("haxe", ["--display", arg]); var stderr = proc.stderr.readAll().toString(); var exit = proc.exitCode(); if (exit != 0) { error(arg + ":\n" + stderr, exit); } else { var exist = stderr.indexOf("