diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-11-06 15:57:43 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-11-07 14:26:14 -0800 |
commit | 62e1735828753012b3cf80f94ab4e176b015d17d (patch) | |
tree | f1c4248aa68e10fd80d33d62362669bfd8f3dea0 /test cases/java | |
parent | d405b74caf700df2c39da75691e8df1ca25f7e10 (diff) | |
download | meson-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.build | 2 |
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@']) |