summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2020-12-28 09:12:15 +0200
committerVille Skyttä <ville.skytta@iki.fi>2020-12-28 09:17:11 +0200
commitf8ce49e4a8978a8e0fd4c62dd86b867ff38b4946 (patch)
treefe394e87f743c24014e00e2420a9bbd1ca3e5116
parente249d6e14c2ff231cb25c27f8eb754c5291f1340 (diff)
downloadshared-mime-info-f8ce49e4a8978a8e0fd4c62dd86b867ff38b4946.tar.gz
audio/x-mod: add known false positive 669 Composer test case
Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
-rw-r--r--tests/mime-detection/false-positive-66925
-rw-r--r--tests/mime-detection/list2
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/mime-detection/false-positive-669 b/tests/mime-detection/false-positive-669
new file mode 100644
index 00000000..d7bbacc1
--- /dev/null
+++ b/tests/mime-detection/false-positive-669
@@ -0,0 +1,25 @@
+if [ -d /etc/X11/xinit/xinitrc.d ] ; then
+ for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
+ [ -x "$f" ] && . "$f"
+ done
+fi
+if [ -d /etc/X11/xinit/xinitrc.d ] ; then
+ for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
+ [ -x "$f" ] && . "$f"
+ done
+fi
+if [ -d /etc/X11/xinit/xinitrc.d ] ; then
+ for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
+ [ -x "$f" ] && . "$f"
+ done
+fi
+if [ -d /etc/X11/xinit/xinitrc.d ] ; then
+ for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
+ [ -x "$f" ] && . "$f"
+ done
+fi
+if [ -d /etc/X11/xinit/xinitrc.d ] ; then
+ for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
+ [ -x "$f" ] && . "$f"
+ done
+fi
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 637eb5e4..7f3cc099 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -530,6 +530,8 @@ cyborg.med audio/x-mod
simon.669 audio/x-mod
# http://modarchive.org/module.php?61261
4jsno.669 audio/x-mod
+# https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
+false-positive-669 text/plain xxx
# Copied from https://github.com/inAudible-NG/audible-samples
test.aa audio/x-pn-audibleaudio
test.aax audio/vnd.audible.aax