EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: How to "tweek" tests?
From: "Zimoch Dirk \(PSI\) via Core-talk" <core-talk at aps.anl.gov>
To: "'core-talk at aps.anl.gov'" <core-talk at aps.anl.gov>
Cc: "Straumann Till Sascha \(PSI\)" <till.straumann at psi.ch>
Date: Mon, 23 Nov 2020 10:36:51 +0000
Hello experts,

One of my colleagues (Till Straumann) has implemented a modification of EPICS mutexes (posix) to support priority inversion safety. (Originally for 3.14.12 but I have ported the change to EPICS 7 now). But there are two problems with the tests.
1. For backward compatibility reasons, the change depends on an environment variable which must be set before libCom is loaded. How to do that for the test? In MAIN, it is too late. Doing it on the command line does not seem to work well for ci. 
2. The fix depends on SCHED_FIFO which can only be set with sufficient permissions. Thus, the test only succeeds as root and fails otherwise.

How to handle this? Is there a method to set environment variables before a specific test is run? (I could for course fork a new process but that seems rather clumsy). Is isforseen to run tests as root (only)?

Dirk


Replies:
Re: How to "tweak" tests? Ralph Lange via Core-talk

Navigate by Date:
Prev: Re: AW: AW: AW: AW: Problems with hanging osiSockTest Torsten Bögershausen via Core-talk
Next: Re: How to "tweak" tests? Ralph Lange via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: New Travis CI pricing model Jeong Han Lee via Core-talk
Next: Re: How to "tweak" tests? Ralph Lange via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 23 Nov 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·