Project

General

Profile

Actions

Bug #3323

closed

unit-tests-core fails on Fedora 22

Added by susmit shannigrahi over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Built NFD with --with-tests. Core tests fail.


./unit-tests-core 
Running 55 test cases...
../tests/core/config-file.t.cpp(222): fatal error in "OnConfigStream": critical check input.is_open() failed
../core/config-file.cpp(76): fatal error in "void nfd::ConfigFile::parse(const string&, bool)": std::runtime_error: Failed to read configuration file: tests/core/config_example.info
../tests/core/config-file.t.cpp(287): last checkpoint
../tests/core/config-file.t.cpp(327): fatal error in "OnConfigStreamDryRun": critical check input.is_open() failed
../core/config-file.cpp(76): fatal error in "void nfd::ConfigFile::parse(const string&, bool)": std::runtime_error: Failed to read configuration file: tests/core/config_example.info
../tests/core/config-file.t.cpp(327): last checkpoint
1446834846.437973 INFO: [VersionTest] NFD_VERSION 3004
1446834846.438168 INFO: [VersionTest] NFD_VERSION_STRING 0.3.4

*** 4 failures detected in test suite "Master Test Suite"
Actions #1

Updated by Davide Pesavento over 8 years ago

  • Subject changed from unit-test-core and fails on Fedora 22 to unit-tests-core fails on Fedora 22

Apparently some tests assume that they're being run from the "root" directory of the repo, i.e. the test binary should be executed like this:

~/NFD$ ./build/unit-tests-core
Actions #2

Updated by susmit shannigrahi over 8 years ago

Thanks. That fixed it.

However, there are four more errors (exceptions) in unit-tests-daemon


NFD-NFD-0.3.4]$ build/unit-tests-daemon 
Running 299 test cases...
../tests/daemon/mgmt/face-manager.t.cpp(493): error in "TestProcessSectionUdp": exception thrown by parseConfig(CONFIG, false)
../tests/daemon/mgmt/face-manager.t.cpp(657): error in "TestProcessSectionUdpMulticastReinit": exception thrown by parseConfig(CONFIG_WITH_MCAST, false)
../tests/daemon/mgmt/general-config-section.t.cpp(79): error in "UserAndGroupConfig": exception thrown by configFile.parse(CONFIG, true, "test-general-config-section")
../tests/daemon/mgmt/general-config-section.t.cpp(93): error in "NoUserConfig": exception thrown by configFile.parse(CONFIG, true, "test-general-config-section")

*** 4 failures detected in test suite "Master Test Suite"


Actions #3

Updated by Junxiao Shi over 8 years ago

  • Status changed from New to Rejected

NFD unit tests require sudo. note-2 failures are caused by lack of sudo. Same errors can occur on Ubuntu without sudo.

Actions

Also available in: Atom PDF