summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-30 00:49:20 +0800
committerruki <[email protected]>2024-11-30 00:49:20 +0800
commitd9220fbb1cad4e025094c52c3ee5deaf6dbb9d8f (patch)
treeeab01c29e6cd45d26f79f476099b3a05b94a42db
parent156e09f96486ef8c5f5517aae6f432954816b209 (diff)
fix test
-rwxr-xr-xtests/projects/package/compatibility/deps_with_version/src/main.c3
-rw-r--r--tests/projects/package/compatibility/deps_with_version/xmake.lua4
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/projects/package/compatibility/deps_with_version/src/main.c b/tests/projects/package/compatibility/deps_with_version/src/main.c
index 9ae580511..113930e1a 100755
--- a/tests/projects/package/compatibility/deps_with_version/src/main.c
+++ b/tests/projects/package/compatibility/deps_with_version/src/main.c
@@ -1,7 +1,6 @@
#include <stdio.h>
-int main(int argc, char** argv)
-{
+int main(int argc, char** argv) {
printf("hello world!\n");
return 0;
}
diff --git a/tests/projects/package/compatibility/deps_with_version/xmake.lua b/tests/projects/package/compatibility/deps_with_version/xmake.lua
index b6ba830c3..28adf5e7e 100644
--- a/tests/projects/package/compatibility/deps_with_version/xmake.lua
+++ b/tests/projects/package/compatibility/deps_with_version/xmake.lua
@@ -1,21 +1,25 @@
package("foo")
add_deps("zlib >=1.2.13")
+ set_policy("package.install_locally", true)
on_install(function () end)
package_end()
package("bar")
add_deps("zlib 1.2.x")
+ set_policy("package.install_locally", true)
-- add_deps("libpng dev")
on_install(function () end)
package_end()
package("zoo")
add_deps("libpng master")
+ set_policy("package.install_locally", true)
on_install(function () end)
package_end()
package("test")
add_deps("foo", "bar", "zoo")
+ set_policy("package.install_locally", true)
on_install(function () end)
package_end()