Mercurial > hg > graal-compiler
comparison test/runtime/6626217/Test6626217.sh @ 14296:50bb249de889
7015395: [TESTBUG] runtime/6626217/Test6626217.sh fails if compilation happens fast enough for timestamps to be equal.
Summary: Insert 2 second sleep between copying of the src files and the compilation, to make sure the timestamps of *.class files are in the future of *.java files.
Reviewed-by: coleenp, fparain
author | gziemski |
---|---|
date | Tue, 21 Jan 2014 16:45:10 -0600 |
parents | de6a9e811145 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14295:4c241e42a3e4 | 14296:50bb249de889 |
---|---|
46 ${CP} ${TESTSRC}${FS}* ${THIS_DIR} | 46 ${CP} ${TESTSRC}${FS}* ${THIS_DIR} |
47 | 47 |
48 # A Clean Compile: this line will probably fail within jtreg as have a clean dir: | 48 # A Clean Compile: this line will probably fail within jtreg as have a clean dir: |
49 ${RM} -f *.class *.impl many_loader.java | 49 ${RM} -f *.class *.impl many_loader.java |
50 | 50 |
51 # Make sure that the compilation steps occurs in the future as not to allow fast systems | |
52 # to copy and compile bug_21227.java so fast as to make the class and java have the same | |
53 # time stamp, which later on would make the compilation step of many_loader.java fail | |
54 sleep 2 | |
55 | |
51 # Compile all the usual suspects, including the default 'many_loader' | 56 # Compile all the usual suspects, including the default 'many_loader' |
52 ${CP} many_loader1.java.foo many_loader.java | 57 ${CP} many_loader1.java.foo many_loader.java |
53 ${JAVAC} ${TESTJAVACOPTS} -source 1.4 -target 1.4 -Xlint *.java | 58 ${JAVAC} ${TESTJAVACOPTS} -source 1.4 -target 1.4 -Xlint *.java |
54 | 59 |
55 # Rename the class files, so the custom loader (and not the system loader) will find it | 60 # Rename the class files, so the custom loader (and not the system loader) will find it |