From 5dd34ad8e4567687c774a03587bdd2a2338639c7 Mon Sep 17 00:00:00 2001 From: wisberg Date: Sun, 25 May 2003 00:44:02 +0000 Subject: [PATCH] suite files now constrained to be readable to avoid confusion with -ajctestTitle.. referents. --- testing-drivers/src/org/aspectj/testing/drivers/Harness.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing-drivers/src/org/aspectj/testing/drivers/Harness.java b/testing-drivers/src/org/aspectj/testing/drivers/Harness.java index b9b540cba..1a8e8ea9d 100644 --- a/testing-drivers/src/org/aspectj/testing/drivers/Harness.java +++ b/testing-drivers/src/org/aspectj/testing/drivers/Harness.java @@ -371,7 +371,8 @@ public class Harness { protected boolean isSuiteFile(String arg) { return ((null != arg) - && (arg.endsWith(".txt") || arg.endsWith(".xml"))); + && (arg.endsWith(".txt") || arg.endsWith(".xml")) + && new File(arg).canRead()); } /** -- 2.39.5