« Return to Thread: why filter tests failed on Solaris

why filter tests failed on Solaris

by Irene Huang :: Rate this Message:

Reply to Author | View in Thread

hi, Daniel

The filter test failed on Solaris again because of differences in shell
interpretation again.

On Linux if the two directory data1 and data2 are identical
$ test "x$(diff -x ".*" data1 data2)" = "x"
$ echo $?
0
But if they are not identical,
$ test "x$(diff -x ".*" data1 data2)" = "x"
$ echo $?
1

However it is the other way around on solaris shell.

To avoid the failure, can I just add some #ifdefs to treat the return
value differently?

--Irene



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

 « Return to Thread: why filter tests failed on Solaris