tests: test return value of nitpick
authorJean Privat <jean@pryen.org>
Wed, 22 Jul 2015 14:19:11 +0000 (10:19 -0400)
committerJean Privat <jean@pryen.org>
Wed, 22 Jul 2015 14:19:11 +0000 (10:19 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/nitpick.args
tests/sav/nitpick_args2.res [new file with mode: 0644]
tests/sav/nitpick_args3.res [new file with mode: 0644]

index 3ae7a2a..396ac26 100644 (file)
@@ -1 +1,3 @@
 --no-color -W test_advice_repeated_types.nit
+--no-color base_simple3.nit; echo $?
+--no-color error_mod_unk.nit; echo $?
diff --git a/tests/sav/nitpick_args2.res b/tests/sav/nitpick_args2.res
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/tests/sav/nitpick_args3.res b/tests/sav/nitpick_args3.res
new file mode 100644 (file)
index 0000000..ecc2f7d
--- /dev/null
@@ -0,0 +1,2 @@
+error_mod_unk.nit:17,8--11: Error: cannot find module `dfgd` from `error_mod_unk`. Tried: ../lib, ../contrib, ..
+1