aboutsummaryrefslogtreecommitdiff
path: root/test cases/java
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-11-06 15:57:43 -0800
committerDylan Baker <dylan@pnwbakers.com>2018-11-07 14:26:14 -0800
commit62e1735828753012b3cf80f94ab4e176b015d17d (patch)
treef1c4248aa68e10fd80d33d62362669bfd8f3dea0 /test cases/java
parentd405b74caf700df2c39da75691e8df1ca25f7e10 (diff)
downloadmeson-62e1735828753012b3cf80f94ab4e176b015d17d.zip
meson-62e1735828753012b3cf80f94ab4e176b015d17d.tar.gz
meson-62e1735828753012b3cf80f94ab4e176b015d17d.tar.bz2
tests/java: force latency in generation to exercise race
Because we are racing here. In reality *all* of the java in that target may rely on the generated file, so we need to block all of them, like we would for headers in C/C++.
Diffstat (limited to 'test cases/java')
-rw-r--r--test cases/java/8 codegen custom target/com/mesonbuild/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/java/8 codegen custom target/com/mesonbuild/meson.build b/test cases/java/8 codegen custom target/com/mesonbuild/meson.build
index 67b98a4..0309941 100644
--- a/test cases/java/8 codegen custom target/com/mesonbuild/meson.build
+++ b/test cases/java/8 codegen custom target/com/mesonbuild/meson.build
@@ -4,5 +4,5 @@ config_file = custom_target('confgen',
input : 'Config.java.in',
output : 'Config.java',
command : [python, '-c',
- 'import shutil; import sys; shutil.copy(sys.argv[1], sys.argv[2])',
+ 'import shutil, sys, time; time.sleep(1); shutil.copy(sys.argv[1], sys.argv[2])',
'@INPUT@', '@OUTPUT@'])