[nasm:master] travis: add strlen
nasm-bot for Cyrill Gorcunov
gorcunov at gmail.com
Sat Oct 10 06:39:07 PDT 2020
Commit-ID: 52f82633d37a2da9bc0631134d93d01d296fa4fc
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=52f82633d37a2da9bc0631134d93d01d296fa4fc
Author: Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Sat, 10 Oct 2020 14:16:35 +0300
Committer: Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Sat, 10 Oct 2020 14:21:34 +0300
travis: add strlen
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
{test => travis/test}/strlen.asm | 0
travis/test/strlen.json | 13 +++++++++++++
travis/test/strlen.stderr | 2 ++
3 files changed, 15 insertions(+)
diff --git a/test/strlen.asm b/travis/test/strlen.asm
similarity index 100%
copy from test/strlen.asm
copy to travis/test/strlen.asm
diff --git a/travis/test/strlen.json b/travis/test/strlen.json
new file mode 100644
index 00000000..2670c4e5
--- /dev/null
+++ b/travis/test/strlen.json
@@ -0,0 +1,13 @@
+[
+ {
+ "description": "Test strlen error over nonexisting argument",
+ "id": "strlen",
+ "format": "bin",
+ "source": "strlen.asm",
+ "option": "-E -Ox",
+ "target": [
+ { "stderr": "strlen.stderr" }
+ ],
+ "error": "expected"
+ }
+]
diff --git a/travis/test/strlen.stderr b/travis/test/strlen.stderr
new file mode 100644
index 00000000..3e933877
--- /dev/null
+++ b/travis/test/strlen.stderr
@@ -0,0 +1,2 @@
+./travis/test/strlen.asm:5: error: `%strlen' requires string as second parameter
+./travis/test/strlen.asm:2: ... from macro `strlen_test' defined here
More information about the Nasm-commits
mailing list