Fix tests

These tests did not properly define their BOOST_TEST_MODULE macro,
causing linking to fail in some environments.
This commit is contained in:
Nathan Hourt 2021-03-02 21:54:47 -06:00 committed by Michel Santos
parent 0c320fdc71
commit 8a6bae6006
5 changed files with 14 additions and 2 deletions

View file

@ -21,6 +21,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#define BOOST_TEST_MODULE Peerplays Betting Tests
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
// disable auto_ptr deprecated warning, see https://svn.boost.org/trac10/ticket/11622 // disable auto_ptr deprecated warning, see https://svn.boost.org/trac10/ticket/11622

View file

@ -1,7 +1,7 @@
#include <boost/test/unit_test.hpp>
#define BOOST_TEST_MODULE Peerplays SON Tests #define BOOST_TEST_MODULE Peerplays SON Tests
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(peerplays_sidechain) { BOOST_AUTO_TEST_CASE(peerplays_sidechain) {
} }

View file

@ -21,6 +21,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#define BOOST_TEST_MODULE Performance Tests
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <graphene/chain/database.hpp> #include <graphene/chain/database.hpp>

View file

@ -21,6 +21,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#define BOOST_TEST_MODULE Random Tests
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
//#include <fc/crypto/openssl.hpp> //#include <fc/crypto/openssl.hpp>
//#include <openssl/rand.h> //#include <openssl/rand.h>

View file

@ -21,6 +21,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#define BOOST_TEST_MODULE Peerplays Tournament Tests
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <fc/crypto/openssl.hpp> #include <fc/crypto/openssl.hpp>
#include <openssl/rand.h> #include <openssl/rand.h>