Clean up temporary test file in Search-Dict test
authorSteve Hay <steve.m.hay@googlemail.com>
Tue, 14 Aug 2012 00:07:29 +0000 (01:07 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Tue, 14 Aug 2012 00:07:29 +0000 (01:07 +0100)
Need to untie before unlink on Windows.

dist/Search-Dict/t/Dict.t

index 04f8c8d..bc997b0 100644 (file)
@@ -99,6 +99,7 @@ close DICT or die "cannot close";
   cmp_ok $pos, ">=", 0, "case-insensitive search for 'aarhus' returned > 0";
   is $word, "Aarhus", "case-insensitive search found 'Aarhus'";
 
+  untie *DICT;
 }
 unlink "dict-$$";