mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
TEST: Skip CJK tests outside of POSIX
They need file access that needs null backend which for now only peopwely compiles on POSIX.
This commit is contained in:
parent
421e36a3a8
commit
a9fe1d7a84
@ -4,9 +4,18 @@
|
||||
#include "common/ustr.h"
|
||||
#include "../null_osystem.h"
|
||||
|
||||
// We support CJK on all the platforms but it relies on OSystem to read
|
||||
// file which *in test environments* is available only on some platforms
|
||||
#if defined(POSIX)
|
||||
#define TEST_CJK 1
|
||||
#else
|
||||
#define TEST_CJK 0
|
||||
#endif
|
||||
|
||||
class EncodingTestSuite : public CxxTest::TestSuite
|
||||
{
|
||||
public:
|
||||
#if TEST_CJK
|
||||
void test_korean() {
|
||||
Common::install_null_g_system();
|
||||
const byte utf8[] = {
|
||||
@ -122,6 +131,7 @@ public:
|
||||
TS_ASSERT(strcmp((const char *) utf8, cp932_to_utf8.c_str()) == 0);
|
||||
TS_ASSERT(strcmp((const char *) cp932, utf8_to_cp932.c_str()) == 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
void test_conversion_unicode_machine_endian() {
|
||||
Common::install_null_g_system();
|
||||
|
@ -6,15 +6,20 @@
|
||||
######################################################################
|
||||
|
||||
TESTS := $(srcdir)/test/common/*.h $(srcdir)/test/audio/*.h $(srcdir)/test/math/*.h
|
||||
TEST_LIBS := test/null_osystem.o \
|
||||
TEST_LIBS :=
|
||||
|
||||
ifdef POSIX
|
||||
TEST_LIBS += test/null_osystem.o \
|
||||
backends/fs/posix/posix-fs-factory.o \
|
||||
backends/fs/posix/posix-fs.o \
|
||||
backends/fs/posix/posix-iostream.o \
|
||||
backends/fs/abstract-fs.o \
|
||||
backends/fs/stdiostream.o \
|
||||
backends/modular-backend.o \
|
||||
test/stubs.o \
|
||||
audio/libaudio.a math/libmath.a common/libcommon.a
|
||||
test/stubs.o
|
||||
endif
|
||||
|
||||
TEST_LIBS += audio/libaudio.a math/libmath.a common/libcommon.a
|
||||
|
||||
ifeq ($(ENABLE_WINTERMUTE), STATIC_PLUGIN)
|
||||
TESTS += $(srcdir)/test/engines/wintermute/*.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user