Kaydet (Commit) fd35ddd3 authored tarafından Michael Stahl's avatar Michael Stahl

smoketest: run the extension test first

With clang 3.4 ASAN there is the problem that the smoketest fails if run
in "make check" while trying to start the JVM, in getJavaProps()
it forks a "java" process and that fails due to lack of memory.

Avoid that problem by running the extension test first, when there is
only one application loaded, so the process is using much less memory.

Change-Id: I7e8bdc6ceea65b212f376943c7814ad1cf28675d
üst 8405ee50
......@@ -160,6 +160,13 @@ DIM nStrPos as Long
GlobalTestLog = OpenLogDat (sLogFileName)
call WriteTestSequence
' Do extension test first to avoid OOM with ASAN
if bMakeExtensionTest then
gCurrentDocTest = frmExtension
call Test_Ext.TestExtensions
end if
if bMakeWriterTest then
gCurrentDocTest = frmWriter
call MakeDocTest
......@@ -196,10 +203,6 @@ DIM nStrPos as Long
gCurrentDocTest = frmDataBase
call Test_DB.TestDB
end if
if bMakeExtensionTest then
gCurrentDocTest = frmExtension
call Test_Ext.TestExtensions
end if
Close #GlobalTestLog
GlobalTestLog = 0
......@@ -208,6 +211,8 @@ end Sub
Sub WriteTestSequence
Print #GlobalTestLog, "Sequence of testing"
if bMakeExtensionTest then
WriteExtensionTests ("Extension : ", GlobalTestLog)
if bMakeWriterTest then
WriteTests ("writer : ", true, GlobalTestLog)
end if
......@@ -235,8 +240,6 @@ Sub WriteTestSequence
if bMakeDBTest then
WriteDBTests ("Database : ", GlobalTestLog)
end if
if bMakeExtensionTest then
WriteExtensionTests ("Extension : ", GlobalTestLog)
end if
Print #GlobalTestLog, "testclosure : setup, write_status"
......
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