diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-31 21:25:46 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-31 21:25:46 +0300 |
commit | 9e122005cf5aa1ac288f9d7229d1fc2f7d472270 (patch) | |
tree | a3e961125342afd8c082bd7dace49f66829a8c9d /test cases | |
parent | e13f8136268124b5591c8151130137599d313153 (diff) | |
download | meson-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.build | 4 |
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 |