Bug 1123

Summary: LSB 4.1: cupsConvenience error
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Xiaofeng Yan <Xiaofeng.yan>
Component: coreAssignee: Xiaofeng Yan <Xiaofeng.yan>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Medium CC: liang.li2, liangliang.wang, meta.mr.watcher, meta.watcher, sgw, yi.zhao
Version: 1.0-alpha   
Target Milestone: 1.1 M3   
Hardware: mpc8315e-rdb   
OS: ppc   
Whiteboard: will be fixed by Aug12/2011
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
source codes for cupsConvenience
none
binary for cupsConvenience none

Description Xiaofeng Yan 2011-05-27 05:14:27 UTC
convenience/cupsConvenience 37 	unresolved 	
Message from the test:

Test 37
When cupsSetDests2 is called to save the list of destinations for the specified server, the destinations are saved to either /etc/cups/loptions (root) or ~/.cups/lpoptions (normal user) and the function returns 0 on success -1 on error
unexpected signal 6 (SIGABRT) received
Comment 1 Xiaofeng Yan 2011-05-27 05:14:55 UTC
I record this bug and will fix it on 1.1.
Comment 2 Xiaofeng Yan 2011-08-11 20:06:13 UTC
this bug is related to memory of hardware platform. kernel will report error like out of memory when running cups test.
Comment 3 Xiaofeng Yan 2011-08-16 22:21:41 UTC
Created attachment 205 [details]
source codes for cupsConvenience

This is source codes, you can compile this file in target platfrom with environment of gcc and lsb.
Comment 4 Xiaofeng Yan 2011-08-16 22:44:23 UTC
Created attachment 206 [details]
binary for cupsConvenience

Copy this binary to /opt/lsb/test/printing/convenience and run the following command

$ cd /opt/lsb/test/printing
$ sh run_tests
$ cat /opt/lsb/test/printing/results/0007e
.......
520|0 29 00003437 1 1|Test 29
520|0 29 00003437 1 2|When cupsSetDests2 is called to save the list of destinations for the specified server, the destinations are saved to either /etc/cups/loptions (root) or ~/.cups/lpoptions (normal user) and the function returns 0 on success -1 on error
220|0 29 0 10:46:33|PASS
410|0 37 1 10:46:33|IC End

Note: Test 29 is Test 37 because I comment some test item in source codes. 
This test item can pass lsb test if we run this binary manually.