]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Fix test failure when rxgettext is not installed.
authorBruno Haible <bruno@clisp.org>
Mon, 2 Jun 2025 11:05:35 +0000 (13:05 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 2 Jun 2025 11:06:28 +0000 (13:06 +0200)
* gettext-tools/tests/format-ruby-3: Skip test if rxgettext is not installed.

gettext-tools/tests/format-ruby-3

index 320e1293dd06f26af5bc801db7d98f67641bde9f..dd6548fb2ecae08f979d9e59642c3bb8371e6dfb 100755 (executable)
@@ -3,6 +3,9 @@
 
 # Test heuristic recognition of Ruby format strings like "100% complete".
 
+(rxgettext --version) >/dev/null 2>/dev/null \
+  || { echo "Skipping test: rxgettext not found"; Exit 77; }
+
 cat <<\EOF > f-r-3.rb
 gettext("Test 1a is 100% complete");
 gettext("Test 2a from 0% complete to 100% complete");