]> git.saurik.com Git - apt.git/commit - test/libapt/fileutl_test.cc
Fix FileUtlTest.GetTempDir failure when run as root
authorPino Toscano <pino@debian.org>
Sat, 19 Dec 2015 11:09:18 +0000 (12:09 +0100)
committerJulian Andres Klode <jak@debian.org>
Sat, 19 Dec 2015 11:51:10 +0000 (12:51 +0100)
commitdbbe1e6393dab381db0f48b2a645babdddb14eca
treea7fa6a42dc93be4c1479200183c3fc3212d6fc84
parent493e032a9dcccb19dca87c542a067d759213f566
Fix FileUtlTest.GetTempDir failure when run as root

Testing /usr as TMPDIR assumes that GetTempDir() cannot use it
because it cannot write to it; this is true for non-root users, but
not so much for root.

Since root can access everything, perform this particular test case
only when not running as root.

Closes: #808383
test/libapt/fileutl_test.cc