Commit 4ae611f9 authored by Markus Kauppila's avatar Markus Kauppila

Added empty test suite for testing rwops.

parent 716a42e9
ACLOCAL_AMFLAGS = -I acinclude -I build-scripts ACLOCAL_AMFLAGS = -I acinclude -I build-scripts
SUBDIRS = testdummy testrect testplatform testaudio testsurface SUBDIRS = testdummy testrect testplatform testaudio testsurface testrwops
runnerdir = . runnerdir = .
bin_PROGRAMS = runner bin_PROGRAMS = runner
......
...@@ -16,7 +16,7 @@ elif [[ $PLATFORM == "Darwin" ]]; then ...@@ -16,7 +16,7 @@ elif [[ $PLATFORM == "Darwin" ]]; then
fi fi
# TODO: put the test in an array # TODO: put the test in an array
for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface" for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface" "testrwops"
do do
cp -f "$suite/.libs/lib$suite.$EXT" $DIRECTORY cp -f "$suite/.libs/lib$suite.$EXT" $DIRECTORY
done done
......
...@@ -37,7 +37,8 @@ AC_CONFIG_FILES([Makefile ...@@ -37,7 +37,8 @@ AC_CONFIG_FILES([Makefile
testrect/Makefile testrect/Makefile
testplatform/Makefile testplatform/Makefile
testaudio/Makefile testaudio/Makefile
testsurface/Makefile]) testsurface/Makefile
testrwops/Makefile])
AC_OUTPUT AC_OUTPUT
echo "" echo ""
......
...@@ -196,7 +196,7 @@ GenerateUnsignedBoundaryValues(const Uint64 maxValue, ...@@ -196,7 +196,7 @@ GenerateUnsignedBoundaryValues(const Uint64 maxValue,
tempBuf[index++] = boundary1 - 1; tempBuf[index++] = boundary1 - 1;
} }
if(boundary2 < maxValue) { if(boundary2 < maxValue && boundary2 < UINT64_MAX) {
tempBuf[index++] = boundary2 + 1; tempBuf[index++] = boundary2 + 1;
} }
} }
......
lib_LTLIBRARIES = libtestrwops.la
libtestrwops_la_SOURCES = testrwops.c
libtestrwops_la_CLAGS = -fPIC -g
libtestrwops_la_LDFLAGS = `sdl-config --libs` -I ../.libs/libtest.la
/**
* Original code: automated SDL platform test written by Edgar Simo "bobbens"
* Extended and updated by aschiffler at ferzkopp dot net
*/
#include <stdio.h>
#include <SDL/SDL.h>
#include "../SDL_test.h"
/*!
* Note: Port tests from "/test/automated/rwops" here
*
*/
/* Test cases */
static const TestCaseReference test1 =
(TestCaseReference){ "rwops_test", "rwopsy", TEST_ENABLED, 0, 0 };
/* Test suite */
extern const TestCaseReference *testSuite[] = {
&test1, NULL
};
TestCaseReference **QueryTestSuite() {
return (TestCaseReference **)testSuite;
}
/**
* @brief Document test case here
*/
int
rwops_test(void *arg)
{
AssertPass("");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment