You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Niklas Quarfot Nielsen (JIRA)" <ji...@apache.org> on 2014/10/21 03:20:34 UTC
[jira] [Closed] (MESOS-1942) Bad test:
ModuleTest.ExampleModuleParseStringTest
[ https://issues.apache.org/jira/browse/MESOS-1942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niklas Quarfot Nielsen closed MESOS-1942.
-----------------------------------------
Resolution: Fixed
commit 0fcfa50187499e8af958bfdb6f83423c6e7bd75a
Author: Kapil Arya <ka...@mesosphere.io>
Date: Mon Oct 20 18:09:31 2014 -0700
Added setup/teardown for module API tests.
During the one-time setup of the test cases, we do the following:
1. set LD_LIBRARY_PATH to also point to the src/.libs directory.
The original LD_LIBRARY_PATH is restored at the end of all tests.
2. dlopen() examplemodule library and retrieve the pointer to
ModuleBase for the test module. This pointer is later used to
reset the Mesos and module API versions during per-test teardown.
During the tear-down after each test, we unload the module to allow
later loads to succeed.
Review: https://reviews.apache.org/r/26855
> Bad test: ModuleTest.ExampleModuleParseStringTest
> -------------------------------------------------
>
> Key: MESOS-1942
> URL: https://issues.apache.org/jira/browse/MESOS-1942
> Project: Mesos
> Issue Type: Bug
> Components: modules, test
> Affects Versions: 0.21.0
> Reporter: Ian Downes
> Assignee: Kapil Arya
>
> [ RUN ] ModuleTest.UnknownModuleInstantiationTest
> Using temporary directory '/tmp/ModuleTest_UnknownModuleInstantiationTest_Cv4jVf'
> tests/module_tests.cpp:230: Failure
> ModuleManager::load(modules): Error verifying module 'org_apache_mesos_TestModule': Module API version mismatch. Mesos has: 1, library requires: ThisIsNotAnAPIVersion!
> tests/module_tests.cpp:234: Failure
> ModuleManager::unload(moduleName): Error unloading module 'org_apache_mesos_TestModule': module not loaded
> [ FAILED ] ModuleTest.UnknownModuleInstantiationTest (2 ms)
> [ RUN ] ModuleTest.AuthorInfoTest
> Using temporary directory '/tmp/ModuleTest_AuthorInfoTest_E98lf3'
> [ OK ] ModuleTest.AuthorInfoTest (2 ms)
> [ RUN ] ModuleTest.UnknownLibraryTest
> Using temporary directory '/tmp/ModuleTest_UnknownLibraryTest_A0nMzQ'
> [ OK ] ModuleTest.UnknownLibraryTest (4 ms)
> [ RUN ] ModuleTest.ExampleModuleParseStringTest
> Using temporary directory '/tmp/ModuleTest_ExampleModuleParseStringTest_MVESUD'
> tests/module_tests.cpp:75: Failure
> ModuleManager::load(modules): Error verifying module 'org_apache_mesos_TestModule': Module API version mismatch. Mesos has: 1, library requires: ThisIsNotAnAPIVersion!
> tests/module_tests.cpp:78: Failure
> module: Module 'org_apache_mesos_TestModule' unknown
> ABORT: (../3rdparty/libprocess/3rdparty/stout/include/stout/try.hpp:92): Try::get() but state == ERROR: Module 'org_apache_mesos_TestModule' unknown*** Aborted at 1413500769 (unix time) try "date -d @1413500769" if you are using GNU date ***
> PC: @ 0x32844359e9 (unknown)
> *** SIGABRT (@0x3e800001634) received by PID 5684 (TID 0x7f69accd9840) from PID 5684; stack trace: ***
> @ 0x3284c0ef90 (unknown)
> @ 0x32844359e9 (unknown)
> @ 0x32844370f8 (unknown)
> @ 0x4fda1d _Abort()
> @ 0x4fd9a9 _Abort()
> @ 0x9bc1a5 Try<>::get()
> @ 0x9b036a ModuleTest_ExampleModuleParseStringTest_Test::TestBody()
> @ 0xcb0a15 testing::internal::HandleExceptionsInMethodIfSupported<>()
> @ 0xc996ee testing::Test::Run()
> @ 0xc9a494 testing::TestInfo::Run()
> @ 0xc9a9d7 testing::TestCase::Run()
> @ 0xc9fd56 testing::internal::UnitTestImpl::RunAllTests()
> @ 0xcb18c5 testing::internal::HandleExceptionsInMethodIfSupported<>()
> @ 0xc9fa59 testing::UnitTest::Run()
> @ 0x89ccac main
> @ 0x3284421b45 (unknown)
> @ 0x4a4c4d (unknown)
> make[3]: *** [check-local] Aborted (core dumped)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)