bugattr - Bugs: bug #62370, Test failure with musl C library...

 
 

bug #62370: Test failure with musl C library due to different stringification of ENOTSUP errno

Submitter:  None
Submitted:  Wed 27 Apr 2022 09:32:29 AM UTC
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Wed 27 Apr 2022 09:32:29 AM UTC, original submission:  

One attr test (version 2.5.1) fails with musl (I tested with version 1.2.3):

```
FAIL: test/attr
===============

[9] $ mkdir d -- ok
[10] $ cd d -- ok
[12] $ touch f -- ok
[13] $ setfattr -n user -v value f -- failed
setfattr: f: Not supported                                                         != setfattr: f: Operation not supported
[16] $ setfattr -n user. -v value f -- ok
[19] $ setfattr -n user.name f -- ok
<snip>
```

It fails because musl stringifies ENOTSUPP as "Not supported"[1]
and not as "Operation not supported" which the test expects. I'm not very knowledgable in this area, but I think POSIX doesn't mandate the exact string representation of the error numbers? Would it be possible to make the test allow both versions?

Best regards,
Marvin

[1] https://git.musl-libc.org/cgit/musl/tree/src/errno/__strerror.h#n85

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.9