Open Bug 1967870 Opened 5 months ago

xpc::IsInAutomation should return true for GTests

Categories

(Testing :: GTest, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: asuth, Unassigned)

Details

In https://phabricator.services.mozilla.com/D244929#8598670 :janv noted that under gtests xpc::IsInAutomation appears to return false. Especially since GTests are explicitly only for testing, it seems reasonable that we would return true in this case.

Interestingly https://bugzilla.mozilla.org/show_bug.cgi?id=1598804#c9 indicates that IsInAutomation did not return true for xpcshell tests until May 2023 when the pref was added to the xpcshell user.js file.

You need to log in before you can comment on or make changes to this bug.