URL:
http://savannah.gnu.org/bugs/?42740
Summary: Some tests inevitably fail in a chroot
Project: GNUstep
Submitted by: yavor
Submitted on: Sat 12 Jul 2014 02:09:54 PM EEST
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Change Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
___
Details:
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.
___
File Attachments:
---
Date: Sat 12 Jul 2014 02:09:54 PM EEST Name: testsuite-fixes.patch Size: 2kB
By: yavor
http://savannah.gnu.org/bugs/download.php?file_id=31705
___
Reply to this item at:
http://savannah.gnu.org/bugs/?42740
___
Message sent via/by Savannah
http://savannah.gnu.org/
___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep