diff src/share/vm/runtime/arguments.cpp @ 4555:ce13e056d821

explicitly exclude com.oracle.max.graal.tests from graal class path to make JUnit tests work (otherwise the @Test annotation is omitted if it isn't found in the boot classpath)
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 10 Feb 2012 13:58:04 +0100
parents 685cbfb8e08e
children e43d36482d12
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Thu Feb 09 18:36:11 2012 -0800
+++ b/src/share/vm/runtime/arguments.cpp	Fri Feb 10 13:58:04 2012 +0100
@@ -2103,7 +2103,7 @@
     errno = 0;
     DIR* graal_dir_handle = os::opendir(graal_dir);
     while ((dentry = os::readdir(graal_dir_handle, (struct dirent *)tdbuf)) != NULL) {
-      if (strcmp(dentry->d_name, ".") != 0 && strcmp(dentry->d_name, "..")) {
+      if (strcmp(dentry->d_name, ".") != 0 && strcmp(dentry->d_name, "..") != 0 && strcmp(dentry->d_name, "com.oracle.max.graal.tests") != 0) {
         prepend_to_graal_classpath(scp_compiler, graal_dir, dentry->d_name);
         if (PrintVMOptions) {
           tty->print_cr("Adding project directory %s to bootclasspath", dentry->d_name);