Subject: | Tests fail on non-linux systems |
http://matrix.cpantesters.org/?dist=Sort-TSort%200.01 shows fail reports for all non-linux systems. I was curious what's the reason on freebsd systems, and here's the difference:
on linux (debian wheezy):
$ (echo "1 2"; echo "2 1") | tsort; echo "rc: $?"
tsort: -: input contains a loop:
tsort: 1
tsort: 2
1
2
rc: 1
on freebsd (10.1):
$ (echo "1 2"; echo "2 1") | tsort; echo "rc: $?"
tsort: cycle in data
tsort: 1
tsort: 2
2
1
rc: 0
So error message is different, and there's no non-zero exit code in the cycle case.