diff --git a/cmd/swarm/export_test.go b/cmd/swarm/export_test.go
index 525538ad7..20df7b060 100644
--- a/cmd/swarm/export_test.go
+++ b/cmd/swarm/export_test.go
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with go-ethereum. If not, see .
+// +build !windows
+
package main
import (
diff --git a/cmd/swarm/upload_test.go b/cmd/swarm/upload_test.go
index aba4d0dda..84205031b 100644
--- a/cmd/swarm/upload_test.go
+++ b/cmd/swarm/upload_test.go
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with go-ethereum. If not, see .
+// +build !windows
+
package main
import (