Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test fixes #487

Merged
merged 1 commit into from Aug 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions examples/triply/typedefs.h
Expand Up @@ -34,7 +34,7 @@
#ifndef PLYLIB_TYPEDEFS_H
#define PLYLIB_TYPEDEFS_H

#if defined(EQ_DEFINES_H) || defined(EQUALIZER_VERSION)
#ifdef EQUALIZER_USE_OPENGL
# define EQUALIZER
#endif

Expand All @@ -45,6 +45,7 @@
# define PLYLIBWARN LBWARN
# define PLYLIBINFO LBINFO
#else
# include <GL/glew.h>
# include <vmmlib/vmmlib.hpp>
# ifdef _WIN32
# include <Winsock2.h>
Expand Down Expand Up @@ -84,7 +85,7 @@ typedef vmml::vector< 3, float > Normal;
typedef vmml::matrix< 4, 4, float > Matrix4f;
typedef vmml::vector< 4, float > Vector4f;
typedef size_t Index;
typedef GLushort ShortIndex;
typedef unsigned short ShortIndex;

// mesh exception
struct MeshException : public std::exception
Expand Down
8 changes: 4 additions & 4 deletions examples/triply/vertexBufferLeaf.cpp
Expand Up @@ -112,10 +112,10 @@ const BoundingSphere& VertexBufferLeaf::updateBoundingSphere()
_boundingSphere.y() = ( _boundingBox[0].y() + _boundingBox[1].y() ) * 0.5f;
_boundingSphere.z() = ( _boundingBox[0].z() + _boundingBox[1].z() ) * 0.5f;

_boundingSphere.w() = LB_MAX( _boundingBox[1].x() - _boundingBox[0].x(),
_boundingBox[1].y() - _boundingBox[0].y() );
_boundingSphere.w() = LB_MAX( _boundingBox[1].z() - _boundingBox[0].z(),
_boundingSphere.w() );
_boundingSphere.w() = std::max( _boundingBox[1].x() - _boundingBox[0].x(),
_boundingBox[1].y() - _boundingBox[0].y());
_boundingSphere.w() = std::max( _boundingBox[1].z() - _boundingBox[0].z(),
_boundingSphere.w( ));
_boundingSphere.w() *= .5f;

float radius = _boundingSphere.w();
Expand Down
2 changes: 1 addition & 1 deletion examples/triply/vertexBufferLeaf.h
Expand Up @@ -40,7 +40,7 @@ class VertexBufferLeaf : public VertexBufferBase
public:
explicit VertexBufferLeaf( VertexBufferData& data )
: _globalData( data ), _vertexStart( 0 ), _indexStart( 0 )
, _indexLength( 0 ) {}
, _indexLength( 0 ), _vertexLength( 0 ) {}
virtual ~VertexBufferLeaf() {}

virtual void draw( VertexBufferState& state ) const;
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Expand Up @@ -4,7 +4,7 @@
# Change this number when adding tests to force a CMake run: 5

file(GLOB COMPOSITOR_IMAGES compositor/*.rgb)
file(COPY compressor/images ${PROJECT_SOURCE_DIR}/examples/configs
file(COPY perf/images ${PROJECT_SOURCE_DIR}/examples/configs
${COMPOSITOR_IMAGES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

file(GLOB TEST_CONFIGS server/reliability/*.eqc)
Expand Down
1 change: 1 addition & 0 deletions tests/client/configVisitor.cpp
Expand Up @@ -129,6 +129,7 @@ int main( int argc, char **argv )
TEST( client->disconnectServer( server ));
// teardown
TEST( client->exitLocal( ));
lunchbox::sleep( 10 );
}

eq::exit();
Expand Down
2 changes: 1 addition & 1 deletion tests/client/issue304.cpp
Expand Up @@ -25,7 +25,7 @@ int main( const int argc, char** argv )
eq::Global::setConfigFile( "configs/issue304.eqc" );

eq::NodeFactory nodeFactory;
TEST( eq::init( 0, 0, &nodeFactory ));
TEST( eq::init( argc, argv, &nodeFactory ));

eq::ClientPtr client = new eq::Client;
TEST( client->initLocal( argc, argv ));
Expand Down
98 changes: 0 additions & 98 deletions tests/compressor/Results.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.