diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-21 20:57:59 -0500 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-02-19 02:55:57 +0530 |
commit | 967d3d941ef9bb8230ccfd84d2f779a9fac88718 (patch) | |
tree | 714f8a36938fd2c4b990a422abace6c2f6901199 | |
parent | e2858b0cc044c591d2944be7f9d059ea25f1f0fa (diff) | |
download | meson-967d3d941ef9bb8230ccfd84d2f779a9fac88718.zip meson-967d3d941ef9bb8230ccfd84d2f779a9fac88718.tar.gz meson-967d3d941ef9bb8230ccfd84d2f779a9fac88718.tar.bz2 |
tests: avoid unexpected failure when cmake is not installed
This test case checks stdout and demands a `dependency()` lookup fail.
The resulting error message can be different depending on whether cmake
is installed, or not. For cmake-specific tests we would simply skip the
test if cmake is not installed, but here we can just fine-tune the
pattern matching we use to determine if the test failed "correctly".
Fixes #11320
-rw-r--r-- | test cases/failing/111 empty fallback/test.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test cases/failing/111 empty fallback/test.json b/test cases/failing/111 empty fallback/test.json index 02db40b..022e747 100644 --- a/test cases/failing/111 empty fallback/test.json +++ b/test cases/failing/111 empty fallback/test.json @@ -1,7 +1,8 @@ { "stdout": [ { - "line": "test cases/failing/111 empty fallback/meson.build:6:0: ERROR: Dependency \"foo\" not found, tried pkgconfig and cmake" + "match": "re", + "line": "test cases/failing/111 empty fallback/meson.build:6:0: ERROR: Dependency \"foo\" not found.*" } ] } |