Simplify test skipping

Change-Id: I45ca4998e50f60849f6f44544f3c8d22f33ac91c
diff --git a/t/real/hnc.t b/t/real/hnc.t
index 5e44f6b..d7775d7 100644
--- a/t/real/hnc.t
+++ b/t/real/hnc.t
@@ -4,6 +4,10 @@
 use Data::Dumper;
 use JSON::XS;
 
+if ($ENV{SKIP_REAL}) {
+  plan skip_all => 'Skip real tests';
+};
+
 use Benchmark qw/:hireswallclock/;
 
 my $t = Benchmark->new;