summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-02 00:00:12 +0800
committerruki <[email protected]>2024-04-02 00:00:12 +0800
commit72985a034146f40d460ea1fcf7bd017c00b520d7 (patch)
tree113535bd45cc430c085086947736feabfde79534 /tests
parenta881ec111510bd47d7dc374880ff6bcce2e3d42d (diff)
improve binary test
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/other/native_module/modules/binary/src/main.cpp9
-rw-r--r--tests/projects/other/native_module/xmake.lua2
2 files changed, 4 insertions, 7 deletions
diff --git a/tests/projects/other/native_module/modules/binary/src/main.cpp b/tests/projects/other/native_module/modules/binary/src/main.cpp
index 7c435d251..740142372 100644
--- a/tests/projects/other/native_module/modules/binary/src/main.cpp
+++ b/tests/projects/other/native_module/modules/binary/src/main.cpp
@@ -1,9 +1,6 @@
-#include <iostream>
+#include <stdio.h>
-using namespace std;
-
-int main(int argc, char** argv)
-{
- cout << "hello world!" << endl;
+int main(int argc, char** argv) {
+ printf("%s %s\n", argv[1], argv[2]);
return 0;
}
diff --git a/tests/projects/other/native_module/xmake.lua b/tests/projects/other/native_module/xmake.lua
index 3e7f0f4f1..628248534 100644
--- a/tests/projects/other/native_module/xmake.lua
+++ b/tests/projects/other/native_module/xmake.lua
@@ -9,6 +9,6 @@ target("test")
-- import("shared.foo")
import("binary.bar")
-- print("1 + 1 = %d", foo.add(1, 1))
- print("1 - 1 = %s", bar("1", "1"))
+ print("%s", bar("hello", "xmake!"))
end)