Lines 2914-2921
Link Here
|
2914 |
+ " -1.5 -g -preserveAllLocals" |
2914 |
+ " -1.5 -g -preserveAllLocals" |
2915 |
+ " -d \"" + OUTPUT_DIR + File.separator + "X.java\"", |
2915 |
+ " -d \"" + OUTPUT_DIR + File.separator + "X.java\"", |
2916 |
"", |
2916 |
"", |
2917 |
"No .class file created for file X.class in ---OUTPUT_DIR_PLACEHOLDER---/X.java because of an IOException: The output directory is a file : ---OUTPUT_DIR_PLACEHOLDER---/X.java\n", |
2917 |
"No .class file created for file X.class in ---OUTPUT_DIR_PLACEHOLDER" + |
2918 |
true); |
2918 |
"---" + File.separator + "X.java because of an IOException: Regular file " + |
|
|
2919 |
"---OUTPUT_DIR_PLACEHOLDER---" + File.separator + "X.java cannot be used " + |
2920 |
"as output directory\n", |
2921 |
true); |
2922 |
} |
2923 |
// suggested by https://bugs.eclipse.org/bugs/show_bug.cgi?id=141522 |
2924 |
// only checking messages (the bug itself involves concurrent access to |
2925 |
// the file system and a true test case would call for instrumented |
2926 |
// code) |
2927 |
public void test054(){ |
2928 |
String tentativeOutputDirNameTail = |
2929 |
File.separator + "f/out"; |
2930 |
this.runConformTest( |
2931 |
new String[] { |
2932 |
"X.java", |
2933 |
"public class X {}", |
2934 |
"f", // create simple file f |
2935 |
"" |
2936 |
}, |
2937 |
"\"" + OUTPUT_DIR + File.separator + "X.java\"" |
2938 |
+ " -1.5 -g -preserveAllLocals" |
2939 |
+ " -d \"" + OUTPUT_DIR + tentativeOutputDirNameTail + "\"", |
2940 |
"", |
2941 |
"No .class file created for file X.class in ---OUTPUT_DIR_PLACEHOLDER" + |
2942 |
"---" + tentativeOutputDirNameTail + " because of an IOException: " + |
2943 |
"Could not create output directory ---OUTPUT_DIR_PLACEHOLDER---" + |
2944 |
tentativeOutputDirNameTail + "\n", |
2945 |
true); |
2946 |
} |
2947 |
// suggested by https://bugs.eclipse.org/bugs/show_bug.cgi?id=141522 |
2948 |
// only checking messages (the bug itself involves concurrent access to |
2949 |
// the file system and a true test case would call for instrumented |
2950 |
// code) |
2951 |
public void test055(){ |
2952 |
String tentativeOutputDirNameTail = |
2953 |
File.separator + "out"; |
2954 |
File outputDirectory = new File(OUTPUT_DIR + tentativeOutputDirNameTail); |
2955 |
outputDirectory.mkdirs(); |
2956 |
outputDirectory.setReadOnly(); |
2957 |
this.runConformTest( |
2958 |
new String[] { |
2959 |
"p/X.java", |
2960 |
"package p;\n" + |
2961 |
"public class X {}", |
2962 |
}, |
2963 |
"\"" + OUTPUT_DIR + File.separator + "p/X.java\"" |
2964 |
+ " -1.5 -g -preserveAllLocals" |
2965 |
+ " -d \"" + OUTPUT_DIR + tentativeOutputDirNameTail + "\"", |
2966 |
"", |
2967 |
"No .class file created for file p" + File.separator + "X.class in " + |
2968 |
"---OUTPUT_DIR_PLACEHOLDER---" + File.separator + "out because of " + |
2969 |
"an IOException: Could not create subdirectory p into output directory " + |
2970 |
"---OUTPUT_DIR_PLACEHOLDER---" + File.separator + "out\n", |
2971 |
false /* do not flush output directory */); |
2972 |
} |
2973 |
// suggested by https://bugs.eclipse.org/bugs/show_bug.cgi?id=141522 |
2974 |
// only checking messages (the bug itself involves concurrent access to |
2975 |
// the file system and a true test case would call for instrumented |
2976 |
// code) |
2977 |
public void test056(){ |
2978 |
String tentativeOutputDirNameTail = |
2979 |
File.separator + "out"; |
2980 |
this.runConformTest( |
2981 |
new String[] { |
2982 |
"p/X.java", |
2983 |
"package p;\n" + |
2984 |
"public class X {}", |
2985 |
"out/p", // create simple file out/p |
2986 |
"" |
2987 |
}, |
2988 |
"\"" + OUTPUT_DIR + File.separator + "p/X.java\"" |
2989 |
+ " -1.5 -g -preserveAllLocals" |
2990 |
+ " -d \"" + OUTPUT_DIR + tentativeOutputDirNameTail + "\"", |
2991 |
"", |
2992 |
"No .class file created for file p" + File.separator + "X.class in " + |
2993 |
"---OUTPUT_DIR_PLACEHOLDER---" + tentativeOutputDirNameTail + |
2994 |
" because of an IOException: Regular file ---OUTPUT_DIR_PLACEHOLDER---" + |
2995 |
tentativeOutputDirNameTail + File.separator + "p cannot be used as " + |
2996 |
"output directory\n", |
2997 |
true); |
2919 |
} |
2998 |
} |
2920 |
public static Class testClass() { |
2999 |
public static Class testClass() { |
2921 |
return BatchCompilerTest.class; |
3000 |
return BatchCompilerTest.class; |