------- Comment #4 from ghazi at gcc dot gnu dot org 2007-04-19 04:49 ------- (In reply to comment #3) > It looks like this platform has different error messages for a given error.
Yes that's correct. I ran open_errors.exe under the solaris truss command and saw this: open64("./", O_RDWR|O_CREAT, 0666) Err#22 EINVAL So solaris generates EINVAL in this situation. I can easily change the testcase to also expect this possibility. However I'm not sure how reliable it is to string compare the english message from strerror as this testcase does. Anyway, I'll create a patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31616