summaryrefslogtreecommitdiffstats
path: root/windows
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2008-04-21 17:33:23 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2008-04-21 17:33:23 (GMT)
commit84d3ea8e8bd1eca0c3ffa0180cddde3efa820b20 (patch)
tree08c383e2e4c046426389d2007392aad0a85624cc /windows
parent775bbddc289df5eb6c84ef3d0808aadb51ce71d4 (diff)
downloadhdf5-84d3ea8e8bd1eca0c3ffa0180cddde3efa820b20.zip
hdf5-84d3ea8e8bd1eca0c3ffa0180cddde3efa820b20.tar.gz
hdf5-84d3ea8e8bd1eca0c3ffa0180cddde3efa820b20.tar.bz2
[svn-r14855] Purpose: Fix error message when with Windows pthreads
Description: When building HDF5 with thread safety on Windows, the err_compat test was failing because our output was being parsed incorrectly. Rather than having a thread number in the error stack trace, there will be the string "some thread: no way to know the thread (IDs): from pthread on windows:". This checkin now takes this into account, and modifies the output accordingly. Tested: VS2005 on WinXP with Pthreads
Diffstat (limited to 'windows')
-rw-r--r--windows/test/testerror.bat58
1 files changed, 31 insertions, 27 deletions
diff --git a/windows/test/testerror.bat b/windows/test/testerror.bat
index 7204d99..844e69c 100644
--- a/windows/test/testerror.bat
+++ b/windows/test/testerror.bat
@@ -88,25 +88,40 @@ rem
if not "!line_tmp:~0,9!"=="*********" (
set line=
set last_token=
+ set skip=
for %%b in (%%a) do (
- if "!last_token!"=="thread" (
- set line=!line! ^(IDs^):
- ) else if "!last_token:~0,2!"=="#0" (
- set line=!line! ^(file name^)
- ) else if "!last_token!"=="HDF5" (
- rem Check if we wrap parenthesis around "version (number)"
- set version_token=%%b
- if "!version_token:~0,1!"=="(" (
- set line=!line! ^(version ^(number^)^)
- ) else (
- set line=!line! version ^(number^).
+ if not defined skip (
+ if "!last_token!"=="thread" (
+ set line=!line! ^(IDs^):
+
+ ) else if "!last_token!"=="some" (
+ if "%%b"=="thread:" (
+ set line=!line! thread ^(IDs^):
+ set skip=yes
+ ) else (
+ set line=!line! some %%b
+ )
+
+ ) else if "!last_token:~0,2!"=="#0" (
+ set line=!line! ^(file name^)
+
+ ) else if "!last_token!"=="HDF5" (
+ rem Check if we wrap parenthesis around "version (number)"
+ set version_token=%%b
+ if "!version_token:~0,1!"=="(" (
+ set line=!line! ^(version ^(number^)^)
+ ) else (
+ set line=!line! version ^(number^).
+ )
+
+ ) else if "!last_token!"=="line" (
+ set line=!line! ^(number^)
+
+ ) else if not "%%b"=="some" (
+ set line=!line! %%b
)
- ) else if "!last_token!"=="line" (
- set line=!line! ^(number^)
- ) else (
- set line=!line! %%b
+ set last_token=%%b
)
- set last_token=%%b
)
echo.!line!>>%actual_ext%
)
@@ -129,17 +144,6 @@ rem
)
)
)
- type nul > %expect2_parsed%
- for /f "delims=" %%a in (%expect2%) do (
- set line_tmp=%%a
- if not "!line_tmp:~0,9!"=="*********" (
- set line=
- for %%b in (%%a) do (
- set line=!line! %%b
- )
- echo.!line!>>%expect2_parsed%
- )
- )
fc /w %expect1_parsed% %actual% > nul
if %errorlevel% equ 0 (