bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46641: process-tests assume network connection


From: Philipp
Subject: bug#46641: process-tests assume network connection
Date: Sun, 21 Feb 2021 15:40:05 +0100


> Am 21.02.2021 um 14:41 schrieb Lars Ingebrigtsen <larsi@gnus.org>:
> 
> Robert Pluim <rpluim@gmail.com> writes:
> 
>>    Glenn> Some process-tests fail if the system has no network connection.
>>    Glenn> I don't know what the appropriate skip-unless condition to test for
>>    Glenn> network access is.
>> 
>>    Glenn> Ref: https://bugs.debian.org/982969
>> 
>> So Debian deliberately cripple their test environment, run the network
>> tests for an editor which can do network access, and we have to adapt
>> our tests? I am not amused.
>> 
>> I guess we could wrap them all in
>> 
>> (skip-unless (dns-query "google.com"))
> 
> It'd be nice if Emacs did have a predicate for "is there any network
> here?"

This isn’t a yes/no question.  For example, it’s often a good idea to put tests 
into a network namespace that only has a loopback interface.  In that case, 
there’s some network (the loopback interface), but that still doesn’t allow 
Internet access.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]