[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
remove on HP-UX 11
From: |
Bruno Haible |
Subject: |
remove on HP-UX 11 |
Date: |
Sat, 1 Jan 2011 02:33:12 +0100 |
User-agent: |
KMail/1.9.9 |
The 'remove' test fails on HP-UX 11.11 and 11.31:
test-remove.c:81: assertion failed
sh[10]: 26604 Abort(coredump)
FAIL: test-remove
The reason is that a particular remove() call fails with EEXIST, not with
the expected EINVAL or EBUSY. This patch fixes it. OK to commit?
2010-12-31 Bruno Haible <address@hidden>
remove test: Avoid failure on HP-UX 11.
* tests/test-remove.c (main): Allow EEXIST as alternative error code.
--- tests/test-remove.c.orig Sat Jan 1 02:28:42 2011
+++ tests/test-remove.c Sat Jan 1 02:28:28 2011
@@ -78,7 +78,7 @@
/* Empty directory. */
errno = 0;
ASSERT (remove (BASE "dir/.//") == -1);
- ASSERT (errno == EINVAL || errno == EBUSY);
+ ASSERT (errno == EINVAL || errno == EBUSY || errno == EEXIST);
ASSERT (remove (BASE "dir") == 0);
/* Test symlink behavior. Specifying trailing slash should remove
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- remove on HP-UX 11,
Bruno Haible <=