bugGNUstep - Bugs: bug #42740, Some tests inevitably fail in a...

Group
 
 

bug #42740: Some tests inevitably fail in a chroot

Submitter:  Yavor Doganov <yavor>
Submitted:  Sat 12 Jul 2014 11:09:54 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 13 Jul 2014 07:38:01 AM UTC, comment #1: 

Thanks .,.. I applied that patch.

Richard Frith-Macdonald <CaS>
Group Member
Sat 12 Jul 2014 11:09:54 AM UTC, original submission:  

Tests/GNUmakefile has an obvious thinko which leads to some NSBundle tests to fail, among others:

base/NSBundle/general.m:
Failed test:       general.m:76 ... -executablePath returns an executable path (real bundle)
Failed test:       general.m:81 ... +bundleWithIdentifier returns correct bundle


The second issue is when HOME is non-writable, non-existing directory.  This test fails then:

base/Functions/NSGeometry1.m:
Failed test:     NSGeometry1.m:112 ... In MacOSX geometry compat mode


In a standard sbuild/buildd environment, stdin is redirected to /dev/null and I believe this is the reason for these tests to fail:

base/NSRunLoop/performers.m:
Failed test:     performers.m:49 ... -performSelector:target:argument:order:modes: only sends the message once
Failed test:     performers.m:65 ... -performSelector:target:argument:order:modes: orders performers correctly
Failed test:     performers.m:89 ... -cancelPerformSelector:target:argument: works

base/NSRunLoop/thread.m:
Failed test:     thread.m:193 ... A loop with an input source will block


And finally, network connection is not guaranteed to be available.

Attached is a patch that addresses some of these issues.

Yavor Doganov <yavor>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #31705:  testsuite-fixes.patch added by yavor (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by yavor (Submitted the item)
  •  

    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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-07-13 CaS StatusNone Fixed
        Open/ClosedOpen Closed
    2014-07-12 yavor Attached File- Added testsuite-fixes.patch, #31705

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code