diff options
Diffstat (limited to 'tests/projects/rust/static_library/test.lua')
| -rw-r--r-- | tests/projects/rust/static_library/test.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/projects/rust/static_library/test.lua b/tests/projects/rust/static_library/test.lua index 060aa6ca5..5f1a5d5be 100644 --- a/tests/projects/rust/static_library/test.lua +++ b/tests/projects/rust/static_library/test.lua @@ -1,6 +1,13 @@ function main(t) if is_host("macosx") and os.arch() ~= "arm64" then t:build() + local targetfile = os.files("build/**/release/test")[1] + assert(targetfile and os.isfile(targetfile), "target file not found!") + local mtime = os.mtime(targetfile) + os.sleep(1000) + os.touch("src/foo.rs", {mtime = os.time()}) + t:build() + assert(os.mtime(targetfile) > mtime, "target file should be rebuilt after rust dependency changes!") else return t:skip("wrong host platform") end |
