[nasm:master] travis: add timesneg
nasm-bot for Cyrill Gorcunov
gorcunov at gmail.com
Sun Oct 11 03:06:09 PDT 2020
Commit-ID: 985f30df2137c9bbe066fbe1bfed49184ab3b318
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=985f30df2137c9bbe066fbe1bfed49184ab3b318
Author: Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Sat, 10 Oct 2020 16:47:36 +0300
Committer: Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Sat, 10 Oct 2020 16:47:36 +0300
travis: add timesneg
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
travis/test/timesneg.asm | 3 +++
travis/test/timesneg.json | 13 +++++++++++++
travis/test/timesneg.stderr | 2 ++
3 files changed, 18 insertions(+)
diff --git a/travis/test/timesneg.asm b/travis/test/timesneg.asm
new file mode 100644
index 00000000..84b48369
--- /dev/null
+++ b/travis/test/timesneg.asm
@@ -0,0 +1,3 @@
+ bits 32
+ times -1 db 0
+ times -1 incbin "./travis/test/timesneg.asm"
diff --git a/travis/test/timesneg.json b/travis/test/timesneg.json
new file mode 100644
index 00000000..fada29be
--- /dev/null
+++ b/travis/test/timesneg.json
@@ -0,0 +1,13 @@
+[
+ {
+ "description": "Test negative TIMES value",
+ "id": "timesneg",
+ "format": "bin",
+ "source": "timesneg.asm",
+ "option": "-Ox",
+ "target": [
+ { "stderr": "timesneg.stderr" }
+ ],
+ "error": "expected"
+ }
+]
diff --git a/travis/test/timesneg.stderr b/travis/test/timesneg.stderr
new file mode 100644
index 00000000..f8bb3ba6
--- /dev/null
+++ b/travis/test/timesneg.stderr
@@ -0,0 +1,2 @@
+./travis/test/timesneg.asm:2: error: TIMES value -1 is negative
+./travis/test/timesneg.asm:3: error: TIMES value -1 is negative
More information about the Nasm-commits
mailing list