Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
4554:daba89671d29 | 4555:ce13e056d821 |
---|---|
2101 struct dirent* dentry; | 2101 struct dirent* dentry; |
2102 char* tdbuf = NEW_C_HEAP_ARRAY(char, os::readdir_buf_size(graal_dir)); | 2102 char* tdbuf = NEW_C_HEAP_ARRAY(char, os::readdir_buf_size(graal_dir)); |
2103 errno = 0; | 2103 errno = 0; |
2104 DIR* graal_dir_handle = os::opendir(graal_dir); | 2104 DIR* graal_dir_handle = os::opendir(graal_dir); |
2105 while ((dentry = os::readdir(graal_dir_handle, (struct dirent *)tdbuf)) != NULL) { | 2105 while ((dentry = os::readdir(graal_dir_handle, (struct dirent *)tdbuf)) != NULL) { |
2106 if (strcmp(dentry->d_name, ".") != 0 && strcmp(dentry->d_name, "..")) { | 2106 if (strcmp(dentry->d_name, ".") != 0 && strcmp(dentry->d_name, "..") != 0 && strcmp(dentry->d_name, "com.oracle.max.graal.tests") != 0) { |
2107 prepend_to_graal_classpath(scp_compiler, graal_dir, dentry->d_name); | 2107 prepend_to_graal_classpath(scp_compiler, graal_dir, dentry->d_name); |
2108 if (PrintVMOptions) { | 2108 if (PrintVMOptions) { |
2109 tty->print_cr("Adding project directory %s to bootclasspath", dentry->d_name); | 2109 tty->print_cr("Adding project directory %s to bootclasspath", dentry->d_name); |
2110 } | 2110 } |
2111 } | 2111 } |