Add testcase. Should have been in r15429.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15431 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/none/tests/scripts/bug338606 b/none/tests/scripts/bug338606
new file mode 100755
index 0000000..4b38739
--- /dev/null
+++ b/none/tests/scripts/bug338606
@@ -0,0 +1,4 @@
+#!usr/bin/perl
+
+print "hello\n";
+exit 0;
diff --git a/none/tests/scripts/bug338606.stderr.exp b/none/tests/scripts/bug338606.stderr.exp
new file mode 100644
index 0000000..3f15067
--- /dev/null
+++ b/none/tests/scripts/bug338606.stderr.exp
@@ -0,0 +1 @@
+valgrind: ./bug338606: bad interpreter: No such file or directory
diff --git a/none/tests/scripts/bug338606.vgtest b/none/tests/scripts/bug338606.vgtest
new file mode 100644
index 0000000..99e1f45
--- /dev/null
+++ b/none/tests/scripts/bug338606.vgtest
@@ -0,0 +1,7 @@
+# This test used to produce a most bizarre message:
+#
+#   Warning: unknown mime-type for "hello\n" -- using "application/octet-stream"
+#   Error: no such file "hello\n"
+#
+prog: bug338606
+vgopts: -q