Project

General

Profile

Actions

Bug #3064

closed

Compilation error in general-config-section.t.cpp when dropping privileges is not supported

Added by Junxiao Shi almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
Start date:
07/19/2015
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

Steps to reproduce:

  1. ./waf configure --with-tests --debug --without-pch
  2. modify build/config.hpp, comment out #define HAVE_PRIVILEGE_DROP_AND_ELEVATE 1 line to simulate a platform that does not support dropping privileges
  3. ./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’

Related issues 2 (0 open2 closed)

Related to NFD - Bug #2521: MgmtGeneralConfigSection test suite doesn't perform cleanupClosedAlex Afanasyev02/13/2015

Actions
Related to NFD - Bug #2447: MgmtGeneralConfigSection test suite: fails when dropping privileges is not supportedClosedAlex Afanasyev01/29/2015

Actions
Actions #1

Updated by Junxiao Shi almost 9 years ago

  • Related to Bug #2521: MgmtGeneralConfigSection test suite doesn't perform cleanup added
Actions #2

Updated by Junxiao Shi almost 9 years ago

This is a regression introduced by #2521 in commit:4d384fcce548712fdf87ab2e7fc35cba4816f03c.

Actions #3

Updated by Junxiao Shi almost 9 years ago

  • Related to Bug #2447: MgmtGeneralConfigSection test suite: fails when dropping privileges is not supported added
Actions #4

Updated by Junxiao Shi almost 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.

Actions #5

Updated by Alex Afanasyev over 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Alex Afanasyev
Actions #6

Updated by Alex Afanasyev over 8 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
Actions #7

Updated by Junxiao Shi over 8 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF