aboutsummaryrefslogtreecommitdiffstats
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 15:39:44 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 16:36:10 +0300
commit186c28395fac245c552608ec98fd233389595993 (patch)
tree8f51a078fffcd1112379a17a85924912b90369a7 /travis
parente2917fd7758f5c45eb416d9c30320c4c2c9432c0 (diff)
downloadnasm-186c28395fac245c552608ec98fd233389595993.tar.gz
nasm-186c28395fac245c552608ec98fd233389595993.tar.xz
nasm-186c28395fac245c552608ec98fd233389595993.zip
travis: add warnstack
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rw-r--r--travis/test/warnstack.asm10
-rw-r--r--travis/test/warnstack.json12
-rw-r--r--travis/test/warnstack.stderr5
-rw-r--r--travis/test/warnstack.stdout9
4 files changed, 36 insertions, 0 deletions
diff --git a/travis/test/warnstack.asm b/travis/test/warnstack.asm
new file mode 100644
index 00000000..6e762904
--- /dev/null
+++ b/travis/test/warnstack.asm
@@ -0,0 +1,10 @@
+%warning "Good warning"
+ [warning push]
+ [warning -user]
+%warning "Bad warning"
+ [warning pop]
+%warning "Good warning"
+ [warning -user]
+%warning "Bad warning"
+ [warning pop] ; should warn but reset all
+%warning "Good warning"
diff --git a/travis/test/warnstack.json b/travis/test/warnstack.json
new file mode 100644
index 00000000..18f27fc6
--- /dev/null
+++ b/travis/test/warnstack.json
@@ -0,0 +1,12 @@
+[
+ {
+ "description": "Test warning stack",
+ "id": "warnstack",
+ "source": "warnstack.asm",
+ "option": "-E",
+ "target": [
+ { "stdout": "warnstack.stdout" },
+ { "stderr": "warnstack.stderr" }
+ ]
+ }
+]
diff --git a/travis/test/warnstack.stderr b/travis/test/warnstack.stderr
new file mode 100644
index 00000000..91fbf65f
--- /dev/null
+++ b/travis/test/warnstack.stderr
@@ -0,0 +1,5 @@
+./travis/test/warnstack.asm:1: warning: Good warning [-w+user]
+./travis/test/warnstack.asm:4: warning: Bad warning [-w+user]
+./travis/test/warnstack.asm:6: warning: Good warning [-w+user]
+./travis/test/warnstack.asm:8: warning: Bad warning [-w+user]
+./travis/test/warnstack.asm:10: warning: Good warning [-w+user] \ No newline at end of file
diff --git a/travis/test/warnstack.stdout b/travis/test/warnstack.stdout
new file mode 100644
index 00000000..51db543c
--- /dev/null
+++ b/travis/test/warnstack.stdout
@@ -0,0 +1,9 @@
+%line 2+1 ./travis/test/warnstack.asm
+ [warning push]
+ [warning -user]
+
+ [warning pop]
+
+ [warning -user]
+
+ [warning pop] \ No newline at end of file