travis: add strlen

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2020-10-10 14:16:35 +03:00
parent b07ef09273
commit 52f82633d3
3 changed files with 20 additions and 0 deletions

5
travis/test/strlen.asm Normal file
View file

@ -0,0 +1,5 @@
%macro strlen_test 1
%strlen len %2 ; not existing argument
%endmacro
strlen_test 'a'

13
travis/test/strlen.json Normal file
View file

@ -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"
}
]

View file

@ -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