summaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 16:58:54 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:46 +0300
commit6ad457d6f82ac3f58afdcfcd6bc2c48f5d7be2fd (patch)
treeaf081282483ee123308784db31c954d975a72119 /travis
parentc51934e40f10bbaa61ae2b3e8546cd4fedbfc86c (diff)
downloadnasm-6ad457d6f82ac3f58afdcfcd6bc2c48f5d7be2fd.tar.gz
test: nasm-t -- Add br2222615
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rw-r--r--travis/test/br2222615.asm16
-rw-r--r--travis/test/br2222615.bin.t0
-rw-r--r--travis/test/br2222615.json21
-rw-r--r--travis/test/br2222615.stderr1
4 files changed, 38 insertions, 0 deletions
diff --git a/travis/test/br2222615.asm b/travis/test/br2222615.asm
new file mode 100644
index 00000000..61291747
--- /dev/null
+++ b/travis/test/br2222615.asm
@@ -0,0 +1,16 @@
+%macro bluttan 0
+ nop
+%endmacro
+
+%ifnmacro bluttan
+ %error "bluttan is a macro"
+%endif
+
+%ifmacro blej
+ %error "blej is not a macro"
+%endif
+
+%ifdef ERROR
+ %ifnmacro
+ %endif
+%endif
diff --git a/travis/test/br2222615.bin.t b/travis/test/br2222615.bin.t
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/travis/test/br2222615.bin.t
diff --git a/travis/test/br2222615.json b/travis/test/br2222615.json
new file mode 100644
index 00000000..04a61069
--- /dev/null
+++ b/travis/test/br2222615.json
@@ -0,0 +1,21 @@
+[
+ {
+ "description": "Test br2222615 (noerr)",
+ "id": "br2222615",
+ "format": "bin",
+ "source": "br2222615.asm",
+ "option": "",
+ "target": [
+ { "output": "br2222615.bin" }
+ ]
+ },
+ {
+ "description": "Test br2222615 (err)",
+ "ref": "br2222615",
+ "option": "-DERROR -o br2222615.bin",
+ "target": [
+ { "stderr": "br2222615.stderr" }
+ ],
+ "error": "expected"
+ }
+]
diff --git a/travis/test/br2222615.stderr b/travis/test/br2222615.stderr
new file mode 100644
index 00000000..af4fcb70
--- /dev/null
+++ b/travis/test/br2222615.stderr
@@ -0,0 +1 @@
+./travis/test/br2222615.asm:14: error: `%ifnmacro' expects a macro name \ No newline at end of file