Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
38ee8ff7
Kaydet (Commit)
38ee8ff7
authored
Eyl 03, 2015
tarafından
Damjan Jovanovic
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i125003# migrate main/sal/qa/osl/setthreadname from cppunit to Google Test.
üst
8d66d4ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
26 deletions
+19
-26
makefile.mk
sal/qa/osl/setthreadname/makefile.mk
+11
-12
test-setthreadname.cxx
sal/qa/osl/setthreadname/test-setthreadname.cxx
+8
-14
No files found.
sal/qa/osl/setthreadname/makefile.mk
Dosyayı görüntüle @
38ee8ff7
...
...
@@ -33,21 +33,20 @@ ENABLE_EXCEPTIONS = TRUE
.INCLUDE
:
settings.mk
CFLAGSCXX
+=
$(CPPUNIT_CFLAGS)
.IF
"$(ENABLE_UNIT_TESTS)"
!=
"YES"
all
:
@echo
unit
tests
are
disabled.
Nothing
to
do.
DLLPRE
=
SHL1IMPLIB
=
i
$(SHL1TARGET)
SHL1OBJS
=
$(SLO)
/test-setthreadname.obj
SHL1RPATH
=
NONE
SHL1STDLIBS
=
$(CPPUNITLIB)
$(SALLIB)
SHL1TARGET
=
test-setthreadname
SHL1VERSIONMAP
=
version.map
DEF1NAME
=
$(SHL1TARGET)
.ELSE
SLOFILES
=
$(SHL1OBJS)
APP1OBJS
=
$(SLO)
/test-setthreadname.obj
APP1RPATH
=
NONE
APP1STDLIBS
=
$(GTESTLIB)
$(SALLIB)
APP1TARGET
=
test-setthreadname
APP1TEST
=
enabled
.INCLUDE
:
target.mk
.INCLUDE
:
_cppunit.mk
.ENDIF
# "$(ENABLE_UNIT_TESTS)" != "YES"
.END
sal/qa/osl/setthreadname/test-setthreadname.cxx
Dosyayı görüntüle @
38ee8ff7
...
...
@@ -29,10 +29,7 @@
#include <limits>
#include "boost/noncopyable.hpp"
#include "cppunit/TestAssert.h"
#include "cppunit/TestFixture.h"
#include "cppunit/extensions/HelperMacros.h"
#include "cppunit/plugin/TestPlugIn.h"
#include "gtest/gtest.h"
#include "osl/thread.hxx"
namespace
{
...
...
@@ -61,23 +58,20 @@ void TestThread::run() {
}
}
class
Test
:
public
CppUnit
::
TestFixture
{
private
:
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST
(
test
);
CPPUNIT_TEST_SUITE_END
();
void
test
();
class
Test
:
public
::
testing
::
Test
{
};
void
Test
::
test
(
)
{
TEST_F
(
Test
,
test
)
{
TestThread
t
;
t
.
create
();
t
.
join
();
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
}
CPPUNIT_PLUGIN_IMPLEMENT
();
int
main
(
int
argc
,
char
**
argv
)
{
::
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment