Actions
Bug #3064
closedCompilation error in general-config-section.t.cpp when dropping privileges is not supported
Start date:
07/19/2015
Due date:
% Done:
100%
Estimated time:
1.00 h
Description
Steps to reproduce:
./waf configure --with-tests --debug --without-pch
- modify
build/config.hpp
, comment out#define HAVE_PRIVILEGE_DROP_AND_ELEVATE 1
line to simulate a platform that does not support dropping privileges ./waf
Build error:
../tests/daemon/mgmt/general-config-section.t.cpp: In destructor ‘nfd::general::tests::GeneralConfigSectionFixture::~GeneralConfigSectionFixture()’:
../tests/daemon/mgmt/general-config-section.t.cpp:43:5: error: ‘s_normalUid’ is not a member of ‘nfd::PrivilegeHelper’
../tests/daemon/mgmt/general-config-section.t.cpp:44:5: error: ‘s_normalGid’ is not a member of ‘nfd::PrivilegeHelper’
Updated by Junxiao Shi over 9 years ago
- Related to Bug #2521: MgmtGeneralConfigSection test suite doesn't perform cleanup added
Updated by Junxiao Shi over 9 years ago
This is a regression introduced by #2521 in commit:4d384fcce548712fdf87ab2e7fc35cba4816f03c.
Updated by Junxiao Shi over 9 years ago
- Related to Bug #2447: MgmtGeneralConfigSection test suite: fails when dropping privileges is not supported added
Updated by Junxiao Shi over 9 years ago
The solution for both this and #2447 is to wrap appropriate test cases and tear down steps in #ifdef HAVE_PRIVILEGE_DROP_AND_ELEVATE
.
It's recommended to solve both in the same commit.
Updated by Alex Afanasyev about 9 years ago
- Status changed from New to In Progress
- Assignee set to Alex Afanasyev
Updated by Alex Afanasyev about 9 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
Updated by Junxiao Shi about 9 years ago
- Status changed from Code review to Closed
Actions