summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2021-04-24 22:55:41 +0200
committerDavid Faure <faure@kde.org>2021-04-25 12:10:09 +0200
commit09faac14d0c88dc6ee50a59c7d880e9631c39ff3 (patch)
tree1c7ba34d35ec87e7ad090549d2635b1719453b27 /tests
parent1c40df97bda011fe2563e00655bd34326b97e254 (diff)
downloadshared-mime-info-09faac14d0c88dc6ee50a59c7d880e9631c39ff3.tar.gz
Lower priority of "BEGIN {" for perl, awk uses that toowork/dfaure/issue155
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/155
Diffstat (limited to 'tests')
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/shell-calls-awk2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 94a4ad8a..ae8f3c45 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -390,6 +390,8 @@ example_mime.sage text/x-sagemath oxo
test.pl application/x-perl
test.pm application/x-perl
test.t application/x-perl
+# Not perl https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/155
+shell-calls-awk application/x-shellscript x
# Copied from http://en.wikipedia.org/wiki/Turtle_%28syntax%29#Example
test.ttl text/turtle ox
# Twig template
diff --git a/tests/mime-detection/shell-calls-awk b/tests/mime-detection/shell-calls-awk
new file mode 100644
index 00000000..f32d161a
--- /dev/null
+++ b/tests/mime-detection/shell-calls-awk
@@ -0,0 +1,2 @@
+#!/bin/sh
+awk 'BEGIN { print $0 }'