aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-07-31 21:25:46 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-07-31 21:25:46 +0300
commit9e122005cf5aa1ac288f9d7229d1fc2f7d472270 (patch)
treea3e961125342afd8c082bd7dace49f66829a8c9d /test cases
parente13f8136268124b5591c8151130137599d313153 (diff)
downloadmeson-9e122005cf5aa1ac288f9d7229d1fc2f7d472270.zip
meson-9e122005cf5aa1ac288f9d7229d1fc2f7d472270.tar.gz
meson-9e122005cf5aa1ac288f9d7229d1fc2f7d472270.tar.bz2
Can print status info to log in compiles().
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/33 try compile/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/common/33 try compile/meson.build b/test cases/common/33 try compile/meson.build
index da39784..010e844 100644
--- a/test cases/common/33 try compile/meson.build
+++ b/test cases/common/33 try compile/meson.build
@@ -9,10 +9,10 @@ void func() { printf("This won't work.\n"); }
'''
compiler = meson.get_compiler('c')
-if compiler.compiles(code) == false
+if compiler.compiles(code, testname : 'should succeed') == false
error('Compiler is fail.')
endif
-if compiler.compiles(breakcode)
+if compiler.compiles(breakcode, testname : 'should fail')
error('Compiler returned true on broken code.')
endif