aboutsummaryrefslogtreecommitdiffstats
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-10-10 16:47:36 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-10-10 16:47:36 +0300
commit985f30df2137c9bbe066fbe1bfed49184ab3b318 (patch)
treefba77fdcd4692a0259ac3308f89317f285ffb89e /travis
parentbbed2ce3ceb195dab499d6ce184246973d6147e6 (diff)
downloadnasm-985f30df2137c9bbe066fbe1bfed49184ab3b318.tar.gz
nasm-985f30df2137c9bbe066fbe1bfed49184ab3b318.tar.xz
nasm-985f30df2137c9bbe066fbe1bfed49184ab3b318.zip
travis: add timesneg
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rw-r--r--travis/test/timesneg.asm3
-rw-r--r--travis/test/timesneg.json13
-rw-r--r--travis/test/timesneg.stderr2
3 files changed, 18 insertions, 0 deletions
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