lsb

core test /tset/POSIX.os/files/ftruncate/T.ftruncate 2, truncate/T.truncate 3 FAIL sles11/s390

Bug #1327893 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
Fix Committed
Medium
Unassigned
Mandriva
Won't Fix
Medium

Bug Description

Seeing these fail in beta test runs in the sles11/s390 chroot:

/tset/POSIX.os/files/ftruncate/T.ftruncate 2 failed

Message from the test:

Checks the ftruncate() for error value of EINVAL
ftruncate() expected to return 0, expected to return -1

/tset/POSIX.os/files/truncate/T.truncate 3 failed

Message from the test:

Checks the truncate() for error value of EINVAL
truncate() expected to return 0, expected to return -1

These were recent additions. The assertion is:

 * This test case checks for error value EINVAL.
 * If the lenth argument is less than 0,
 * then truncate will return -1 with errno set to EINVAL
 */

with the test call of:

ret = truncate("testfile1", -1);
if (ret != -1) {
       tet_printf("truncate() expected to return %d, expected to return
-1",ret);
       tet_result(TET_FAIL);
}

ftruncate setup is the same.

Apparently -1 isn't an invalid length on s390.
Message language could be clarified a bit too.

Tags: tests
Changed in mandriva:
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.