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
8e0d758f
Kaydet (Commit)
8e0d758f
authored
Mar 19, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Hint how to use Dr.Memory for unit tests / memory checking.
Change-Id: I7df8716e90e9097336919d2a9208a549b8f7d3d0
üst
684aec54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
unittest-failed.sh
solenv/bin/unittest-failed.sh
+16
-15
No files found.
solenv/bin/unittest-failed.sh
Dosyayı görüntüle @
8e0d758f
...
...
@@ -17,27 +17,28 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
cat
<<
EOF
Error: a unit test failed, please do one of:
ECHECKING
=
'export DEBUGCPPUNIT=TRUE # for exception catching'
DEBUGGING
=
MCHECKING
=
'export VALGRIND=memcheck # for memory checking'
export DEBUGCPPUNIT=TRUE # for exception catching
EOF
if
[
"
$3
"
=
"WNT"
]
;
then
cat
<<
EOF
export CPPUNITTRACE="\"[full path to devenv.exe]\" /debugexe" # for interactive debugging in Visual Studio
EOF
ECHECKING
=
'export DEBUGCPPUNIT=TRUE # for exception catching'
DEBUGGING
=
'export CPPUNITTRACE="\"[full path to devenv.exe]\" /debugexe" # for interactive debugging in Visual Studio'
MCHECKING
=
'export CPPUNITTRACE="drmemory -free_max_frames 20" # for memory checking (install Dr.Memory first)'
elif
[
"
$3
"
=
"MACOSX"
]
;
then
cat
<<
EOF
export CPPUNITTRACE="lldb --" # for interactive debugging on OS X
EOF
DEBUGGING
=
'export CPPUNITTRACE="lldb --" # for interactive debugging on OS X'
else
cat
<<
EOF
export CPPUNITTRACE="gdb --args" # for interactive debugging on Linux
EOF
DEBUGGING
=
'export CPPUNITTRACE="gdb --args" # for interactive debugging on Linux'
fi
# print the actual error message
cat
<<
EOF
export VALGRIND=memcheck # for memory checking
Error: a unit test failed, please do one of:
$ECHECKING
$DEBUGGING
$MCHECKING
and retry using: make
$1Test_$2
...
...
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