i3 - improved tiling WM


Testcases: remove "latest" if it is a symbolic link

Patch status: merged

Patch by Tony Crisci

Long description:

Test for the existence of the symlink to "latest" with the -l flag,
which tests if the target is a symbolic link. Testing with the -e flag
will fail in case the link points to a file that does not exist, which
will occur if the test result directories are deleted by hand.

To apply this patch, use:
curl http://cr.i3wm.org/patch/267/raw.patch | git am

b/testcases/complete-run.pl

17
@@ -108,7 +108,7 @@ $outdir .= POSIX::strftime("%Y-%m-%d-%H-%M-%S-", localtime());
18
 $outdir .= `git describe --tags`;
19
 chomp($outdir);
20
 mkdir($outdir) or die "Could not create $outdir";
21
-unlink("latest") if -e "latest";
22
+unlink("latest") if -l "latest";
23
 symlink("$outdir", "latest") or die "Could not symlink latest to $outdir";
24
 
25