summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/cmd/gotest/gotest4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest
index c4c8e1a9e..212abbf75 100755
--- a/src/cmd/gotest/gotest
+++ b/src/cmd/gotest/gotest
@@ -107,7 +107,9 @@ importpath=$(make -s importpath)
echo
# imports
if echo "$tests" | egrep -v '_test\.' >/dev/null; then
- echo 'import "'$importpath'"'
+ if [ "$importpath" != "testing" ]; then
+ echo 'import "'$importpath'"'
+ fi
fi
if $havex; then
echo 'import "./_xtest_"'