1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Sun, 12 Jun 2022 13:51:37 +0200
Subject: Disable test on some archs
---
test/unique_ptr_test.cpp | 2 ++
test/utest.cpp | 2 ++
2 files changed, 4 insertions(+)
diff --git a/test/unique_ptr_test.cpp b/test/unique_ptr_test.cpp
index 55a8172..209c96d 100644
--- a/test/unique_ptr_test.cpp
+++ b/test/unique_ptr_test.cpp
@@ -169,6 +169,7 @@ void run(ClassLoader * loader)
}
}
+#if !defined(__ARMEL__) && !defined(__MIPSEL__) && !defined(__hppa__) && !defined(__powerpc__)
TEST(ClassLoaderUniquePtrTest, threadSafety) {
ClassLoader loader1(LIBRARY_1);
ASSERT_TRUE(loader1.isLibraryLoaded());
@@ -195,6 +196,7 @@ TEST(ClassLoaderUniquePtrTest, threadSafety) {
FAIL() << "Unknown exception.";
}
}
+#endif
TEST(ClassLoaderUniquePtrTest, loadRefCountingLazy) {
try {
diff --git a/test/utest.cpp b/test/utest.cpp
index f83296a..b3b4487 100644
--- a/test/utest.cpp
+++ b/test/utest.cpp
@@ -237,6 +237,7 @@ void run(class_loader::ClassLoader * loader)
}
}
+#if !defined(__ARMEL__) && !defined(__MIPSEL__) && !defined(__hppa__) && !defined(__powerpc__)
TEST(ClassLoaderTest, threadSafety) {
class_loader::ClassLoader loader1(LIBRARY_1);
ASSERT_TRUE(loader1.isLibraryLoaded());
@@ -267,6 +268,7 @@ TEST(ClassLoaderTest, threadSafety) {
FAIL() << "Unknown exception.";
}
}
+#endif
TEST(ClassLoaderTest, loadRefCountingNonLazy) {
try {
|