For some reason I cannot get tests to run under root or macports user, both via sudo port test and manually, as long as I use sudo ./VidaliaTestSuite or sudo -u macports ./VidaliaTestSuite:
---> Testing Vidalia
Executing: cd "/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests" && ./VidaliaTestSuite
********* Start testing of TorrcTestSuite *********
Config: Using QtTest library 5.15.12, Qt 5.15.12 (arm64-little_endian-lp64 shared (dynamic) release build; by Clang 15.0.0 (clang-1500.1.0.2.5) (Apple)), osx 14.3
PASS : TorrcTestSuite::initTestCase()
PASS : TorrcTestSuite::testTorrcLine()
PASS : TorrcTestSuite::testTorrcParser()
PASS : TorrcTestSuite::testTorrc()
QWARN : TorrcTestSuite::testRunningTor() libpng warning: iCCP: known incorrect sRGB profile
sh: line 1: 72551 Trace/BPT trap: 5 ./VidaliaTestSuite
Command failed: cd "/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests" && ./VidaliaTestSuite
Exit code: 133
Error: Failed to test Vidalia: command execution failed
At the same time, it works fine, if run manually without sudo or explicitly under non-root user:
. . .
250 OK
QDEBUG : TorrcTestSuite::testRunningTor() torcontrol: Control Command: GETCONF UseMicrodescriptors
QDEBUG : TorrcTestSuite::testRunningTor() torcontrol: Control Reply: 250 UseMicrodescriptors=auto
QDEBUG : TorrcTestSuite::testRunningTor() torcontrol: Control Command: GETCONF FetchUselessDescriptors
QDEBUG : TorrcTestSuite::testRunningTor() torcontrol: Control Reply: 250 FetchUselessDescriptors=0
QDEBUG : TorrcTestSuite::testRunningTor() torcontrol: Control Command: GETCONF UseMicrodescriptors
QSYSTEM: TorrcTestSuite::testRunningTor() Maximum amount of warnings exceeded. Use -maxwarnings to override.
PASS : TorrcTestSuite::testRunningTor()
PASS : TorrcTestSuite::cleanupTestCase()
Totals: 6 passed, 0 failed, 0 skipped, 0 blacklisted, 12273ms
********* Finished testing of TorrcTestSuite *********
For some reason I cannot get tests to run under root or macports user, both via
sudo port test
and manually, as long as I usesudo ./VidaliaTestSuite
orsudo -u macports ./VidaliaTestSuite
:At the same time, it works fine, if run manually without
sudo
or explicitly under non-root user:So all these fail:
sudo port test Vidalia
sudo /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests/VidaliaTestSuite
sudo -u macports /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests/VidaliaTestSuite
While these work:
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests/VidaliaTestSuite
sudo -u ${normal-non-root-user} /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests/VidaliaTestSuite
Any idea why is that being the case?