ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
December 2008
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
31 participants
710 discussions
Start a n
N
ew thread
[gschneider] 38314: - Update kernel32 winetest, thanks to Stefan100 for making this possible
by gschneider@svn.reactos.org
Author: gschneider Date: Tue Dec 23 14:02:47 2008 New Revision: 38314 URL:
http://svn.reactos.org/svn/reactos?rev=38314&view=rev
Log: - Update kernel32 winetest, thanks to Stefan100 for making this possible Modified: trunk/rostests/winetests/kernel32/actctx.c trunk/rostests/winetests/kernel32/atom.c trunk/rostests/winetests/kernel32/change.c trunk/rostests/winetests/kernel32/codepage.c trunk/rostests/winetests/kernel32/comm.c trunk/rostests/winetests/kernel32/console.c trunk/rostests/winetests/kernel32/debugger.c trunk/rostests/winetests/kernel32/environ.c trunk/rostests/winetests/kernel32/file.c trunk/rostests/winetests/kernel32/format_msg.c trunk/rostests/winetests/kernel32/heap.c trunk/rostests/winetests/kernel32/loader.c trunk/rostests/winetests/kernel32/locale.c trunk/rostests/winetests/kernel32/mailslot.c trunk/rostests/winetests/kernel32/module.c trunk/rostests/winetests/kernel32/path.c trunk/rostests/winetests/kernel32/pipe.c trunk/rostests/winetests/kernel32/process.c trunk/rostests/winetests/kernel32/profile.c trunk/rostests/winetests/kernel32/resource.c trunk/rostests/winetests/kernel32/sync.c trunk/rostests/winetests/kernel32/thread.c trunk/rostests/winetests/kernel32/timer.c trunk/rostests/winetests/kernel32/toolhelp.c trunk/rostests/winetests/kernel32/version.c trunk/rostests/winetests/kernel32/virtual.c trunk/rostests/winetests/kernel32/volume.c [This mail would be too long, it was shortened to contain the URLs only.] Modified: trunk/rostests/winetests/kernel32/actctx.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/actctx…
Modified: trunk/rostests/winetests/kernel32/atom.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/atom.c…
Modified: trunk/rostests/winetests/kernel32/change.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/change…
Modified: trunk/rostests/winetests/kernel32/codepage.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/codepa…
Modified: trunk/rostests/winetests/kernel32/comm.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/comm.c…
Modified: trunk/rostests/winetests/kernel32/console.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/consol…
Modified: trunk/rostests/winetests/kernel32/debugger.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/debugg…
Modified: trunk/rostests/winetests/kernel32/environ.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/enviro…
Modified: trunk/rostests/winetests/kernel32/file.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/file.c…
Modified: trunk/rostests/winetests/kernel32/format_msg.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/format…
Modified: trunk/rostests/winetests/kernel32/heap.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/heap.c…
Modified: trunk/rostests/winetests/kernel32/loader.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/loader…
Modified: trunk/rostests/winetests/kernel32/locale.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/locale…
Modified: trunk/rostests/winetests/kernel32/mailslot.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/mailsl…
Modified: trunk/rostests/winetests/kernel32/module.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/module…
Modified: trunk/rostests/winetests/kernel32/path.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/path.c…
Modified: trunk/rostests/winetests/kernel32/pipe.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/pipe.c…
Modified: trunk/rostests/winetests/kernel32/process.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/proces…
Modified: trunk/rostests/winetests/kernel32/profile.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/profil…
Modified: trunk/rostests/winetests/kernel32/resource.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/resour…
Modified: trunk/rostests/winetests/kernel32/sync.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/sync.c…
Modified: trunk/rostests/winetests/kernel32/thread.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/thread…
Modified: trunk/rostests/winetests/kernel32/timer.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/timer.…
Modified: trunk/rostests/winetests/kernel32/toolhelp.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/toolhe…
Modified: trunk/rostests/winetests/kernel32/version.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/versio…
Modified: trunk/rostests/winetests/kernel32/virtual.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/virtua…
Modified: trunk/rostests/winetests/kernel32/volume.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/volume…
16 years
1
0
0
0
[hyperion] 38313: Missing from previous commit
by hyperion@svn.reactos.org
Author: hyperion Date: Tue Dec 23 13:56:42 2008 New Revision: 38313 URL:
http://svn.reactos.org/svn/reactos?rev=38313&view=rev
Log: Missing from previous commit Modified: trunk/reactos/boot/bootdata/packages/reactos.dff Modified: trunk/reactos/boot/bootdata/packages/reactos.dff URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/packages/rea…
============================================================================== --- trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] (original) +++ trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] Tue Dec 23 13:56:42 2008 @@ -16,7 +16,7 @@ 1 = system32 2 = system32\drivers 3 = Fonts -4 = +4 = 5 = system32\drivers\etc 6 = inf 7 = bin @@ -617,6 +617,7 @@ modules\rosapps\drivers\avtest\avtest.sys 2 optional modules\rosapps\drivers\green\green.sys 2 optional modules\rosapps\templates\dialog\dialog.exe 1 optional +modules\rostests\tests\pseh2\pseh2_test.exe 7 optional modules\rostests\winetests\advapi32\advapi32_winetest.exe 7 optional modules\rostests\winetests\advpack\advpack_winetest.exe 7 optional modules\rostests\winetests\browseui\browseui_winetest.exe 7 optional
16 years
1
0
0
0
[sginsberg] 38312: - Kill 1 static, kill 1 allowarnings=true
by sginsberg@svn.reactos.org
Author: sginsberg Date: Tue Dec 23 13:53:44 2008 New Revision: 38312 URL:
http://svn.reactos.org/svn/reactos?rev=38312&view=rev
Log: - Kill 1 static, kill 1 allowarnings=true Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/dma_slave.c trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/dma_slave.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/dma_slave.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/dma_slave.c [iso-8859-1] Tue Dec 23 13:53:44 2008 @@ -259,7 +259,7 @@ } -static IDmaChannelSlaveVtbl vt_IDmaChannelSlaveVtbl = +IDmaChannelSlaveVtbl vt_IDmaChannelSlaveVtbl = { /* IUnknown methods */ IDmaChannelSlave_fnQueryInterface, Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild [iso-8859-1] Tue Dec 23 13:53:44 2008 @@ -1,6 +1,6 @@ <?xml version="1.0"?> <!DOCTYPE module SYSTEM "../../../../../tools/rbuild/project.dtd"> -<module name="portcls" type="kernelmodedriver" installbase="system32/drivers" installname="portcls.sys" allowwarnings="true"> +<module name="portcls" type="kernelmodedriver" installbase="system32/drivers" installname="portcls.sys"> <importlibrary definition="portcls.spec" /> <define name="_NTDDK_" /> <define name="PC_NO_IMPORTS" />
16 years
1
0
0
0
[hyperion] 38311: PSEH 2 test suite - around 90 tests so far, and more coming
by hyperion@svn.reactos.org
Author: hyperion Date: Tue Dec 23 13:47:30 2008 New Revision: 38311 URL:
http://svn.reactos.org/svn/reactos?rev=38311&view=rev
Log: PSEH 2 test suite - around 90 tests so far, and more coming Added: trunk/rostests/tests/pseh2/ trunk/rostests/tests/pseh2/pseh2.rbuild (with props) trunk/rostests/tests/pseh2/psehtest.c (with props) trunk/rostests/tests/pseh2/psehtest2.c (with props) Modified: trunk/rostests/tests/directory.rbuild Modified: trunk/rostests/tests/directory.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/tests/directory.rbuild?re…
============================================================================== --- trunk/rostests/tests/directory.rbuild [iso-8859-1] (original) +++ trunk/rostests/tests/directory.rbuild [iso-8859-1] Tue Dec 23 13:47:30 2008 @@ -109,7 +109,7 @@ <directory name="Imagelistviewer"> <xi:include href="Imagelistviewer/imagelistviewer.rbuild" /> </directory> - + <!-- fixme: iptest --> <directory name="isotest"> @@ -174,6 +174,9 @@ <directory name="primitives"> <xi:include href="primitives/primitives.rbuild" /> </directory> + <directory name="pseh2"> + <xi:include href="pseh2/pseh2.rbuild" /> + </directory> <!-- fixme: pteb --> Added: trunk/rostests/tests/pseh2/pseh2.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/tests/pseh2/pseh2.rbuild?…
============================================================================== --- trunk/rostests/tests/pseh2/pseh2.rbuild (added) +++ trunk/rostests/tests/pseh2/pseh2.rbuild [iso-8859-1] Tue Dec 23 13:47:30 2008 @@ -1,0 +1,7 @@ +<?xml version="1.0"?> +<module name="pseh2_test" type="win32cui" installbase="bin" installname="pseh2_test.exe" allowwarnings="true"> + <library>wine</library> + <library>pseh</library> + <file>psehtest.c</file> + <file>psehtest2.c</file> +</module> Propchange: trunk/rostests/tests/pseh2/pseh2.rbuild ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/rostests/tests/pseh2/psehtest.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/tests/pseh2/psehtest.c?re…
============================================================================== --- trunk/rostests/tests/pseh2/psehtest.c (added) +++ trunk/rostests/tests/pseh2/psehtest.c [iso-8859-1] Tue Dec 23 13:47:30 2008 @@ -1,0 +1,2436 @@ +#include <stddef.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include <pseh/pseh2.h> + +#define WIN32_LEAN_AND_MEAN +#include <windows.h> + +#define STANDALONE +#include <wine/test.h> + +extern void no_op(void); +extern int return_arg(int); + +extern int return_zero(void); +extern int return_positive(void); +extern int return_negative(void); +extern int return_one(void); +extern int return_minusone(void); + +extern int return_zero_2(void *); +extern int return_positive_2(void *); +extern int return_negative_2(void *); +extern int return_one_2(void *); +extern int return_minusone_2(void *); + +extern int return_zero_3(int); +extern int return_positive_3(int); +extern int return_negative_3(int); +extern int return_one_3(int); +extern int return_minusone_3(int); + +extern int return_zero_4(void *, int); +extern int return_positive_4(void *, int); +extern int return_negative_4(void *, int); +extern int return_one_4(void *, int); +extern int return_minusone_4(void *, int); + +extern void set_positive(int *); + +static int call_test(int (*)(void)); + +#define DEFINE_TEST(NAME_) \ + static int test_ ## NAME_(void); \ + \ + static void NAME_(void) { ok(call_test(test_ ## NAME_), "test failed\n"); } \ + \ + static int test_ ## NAME_(void) + +/* Empty statements *///{{{ +DEFINE_TEST(empty_1) +{ + _SEH2_TRY { } _SEH2_EXCEPT(0) { } _SEH2_END; + return 1; +} + +DEFINE_TEST(empty_2) +{ + _SEH2_TRY { } _SEH2_EXCEPT(-1) { } _SEH2_END; + return 1; +} + +DEFINE_TEST(empty_3) +{ + _SEH2_TRY { } _SEH2_EXCEPT(1) { } _SEH2_END; + return 1; +} + +DEFINE_TEST(empty_4) +{ + _SEH2_TRY { } _SEH2_FINALLY { } _SEH2_END; + return 1; +} + +DEFINE_TEST(empty_5) +{ + _SEH2_TRY { _SEH2_TRY { } _SEH2_EXCEPT(0) { } _SEH2_END; } _SEH2_FINALLY { } _SEH2_END; + return 1; +} + +DEFINE_TEST(empty_6) +{ + _SEH2_TRY { _SEH2_TRY { } _SEH2_EXCEPT(-1) { } _SEH2_END; } _SEH2_FINALLY { } _SEH2_END; + return 1; +} + +DEFINE_TEST(empty_7) +{ + _SEH2_TRY { _SEH2_TRY { } _SEH2_EXCEPT(1) { } _SEH2_END; } _SEH2_FINALLY { } _SEH2_END; + return 1; +} + +DEFINE_TEST(empty_8) +{ + _SEH2_TRY { _SEH2_TRY { } _SEH2_FINALLY { } _SEH2_END; } _SEH2_FINALLY { } _SEH2_END; + return 1; +} +//}}} + +/* Static exception filters *///{{{ +DEFINE_TEST(execute_handler_1) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_1) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(EXCEPTION_CONTINUE_EXECUTION) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_search_1) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(EXCEPTION_CONTINUE_SEARCH) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(execute_handler_2) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(12345) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_2) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(-12345) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} +//}}} + +/* Dynamic exception filters *///{{{ +DEFINE_TEST(execute_handler_3) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_one()) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_3) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(return_minusone()) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_search_2) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_zero()) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(execute_handler_4) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_positive()) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_4) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(return_negative()) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} +//}}} + +/* Dynamic exception filters, using _SEH2_GetExceptionInformation() *///{{{ +DEFINE_TEST(execute_handler_5) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_one_2(_SEH2_GetExceptionInformation())) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_5) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(return_minusone_2(_SEH2_GetExceptionInformation())) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_search_3) +{ + static int ret; + + ret = return_positive(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_zero_2(_SEH2_GetExceptionInformation())) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(execute_handler_6) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_positive_2(_SEH2_GetExceptionInformation())) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_6) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(return_negative_2(_SEH2_GetExceptionInformation())) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} +//}}} + +/* Dynamic exception filters, using _SEH2_GetExceptionCode() *///{{{ +DEFINE_TEST(execute_handler_7) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_one_3(_SEH2_GetExceptionCode())) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_7) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(return_minusone_3(_SEH2_GetExceptionCode())) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_search_4) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_zero_3(_SEH2_GetExceptionCode())) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(execute_handler_8) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_positive_3(_SEH2_GetExceptionCode())) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_8) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(return_negative_3(_SEH2_GetExceptionCode())) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} +//}}} + +/* Dynamic exception filters, using _SEH2_GetExceptionInformation() and _SEH2_GetExceptionCode() *///{{{ +DEFINE_TEST(execute_handler_9) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_one_4(_SEH2_GetExceptionInformation(), _SEH2_GetExceptionCode())) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_9) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(return_minusone_4(_SEH2_GetExceptionInformation(), _SEH2_GetExceptionCode())) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_search_5) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_zero_4(_SEH2_GetExceptionInformation(), _SEH2_GetExceptionCode())) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(execute_handler_10) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(return_positive_4(_SEH2_GetExceptionInformation(), _SEH2_GetExceptionCode())) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_10) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_positive(); + } + _SEH2_EXCEPT(return_negative_4(_SEH2_GetExceptionInformation(), _SEH2_GetExceptionCode())) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} +//}}} + +/* Constant exception filters with side effects *///{{{ +DEFINE_TEST(execute_handler_11) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(set_positive(&ret), EXCEPTION_EXECUTE_HANDLER) + { + ret = ret ? return_positive() : return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_11) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = ret ? return_positive() : return_zero(); + } + _SEH2_EXCEPT(set_positive(&ret), EXCEPTION_CONTINUE_EXECUTION) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_search_6) +{ + static int ret; + static int ret2; + + ret = return_zero(); + ret2 = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + ret2 = return_zero(); + } + _SEH2_EXCEPT(set_positive(&ret), EXCEPTION_CONTINUE_SEARCH) + { + ret = return_zero(); + ret2 = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(set_positive(&ret2), EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + ret2 = return_arg(ret2); + } + _SEH2_END; + + return ret == return_positive() && ret2 == return_positive(); +} + +DEFINE_TEST(execute_handler_12) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(set_positive(&ret), 12345) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(continue_execution_12) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_arg(ret); + } + _SEH2_EXCEPT(set_positive(&ret), -12345) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} +//}}} + +/* _SEH2_LEAVE *///{{{ +DEFINE_TEST(leave_1) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + ret = return_positive(); + _SEH2_LEAVE; + ret = return_zero(); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(leave_2) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + ret = return_positive(); + _SEH2_LEAVE; + + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(leave_3) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + ret = return_positive(); + + if(return_one()) + _SEH2_LEAVE; + + ret = return_zero(); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(leave_4) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + int i; + int n = return_one() + return_one(); + + for(i = return_zero(); i < n; ++ i) + { + if(i == return_one()) + { + ret = return_positive(); + _SEH2_LEAVE; + } + } + + ret = return_zero(); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(leave_5) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + switch(return_one()) + { + case 0: ret = return_zero(); + case 1: ret = return_positive(); _SEH2_LEAVE; + case 2: ret = return_zero(); + } + + ret = return_zero(); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(leave_6) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_LEAVE; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_zero(); + } + _SEH2_END; + + ret = return_positive(); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} +//}}} + +/* _SEH2_YIELD() *///{{{ +static +int test_yield_1_helper(void) +{ + _SEH2_TRY + { + _SEH2_YIELD(return return_positive()); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + _SEH2_YIELD(return return_zero()); + } + _SEH2_END; + + return return_zero(); +} + +DEFINE_TEST(yield_1) +{ + return test_yield_1_helper() == return_positive(); +} + +static +int test_yield_2_helper(void) +{ + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + _SEH2_YIELD(return return_zero()); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + _SEH2_YIELD(return return_positive()); + } + _SEH2_END; + + return return_zero(); +} + +DEFINE_TEST(yield_2) +{ + return test_yield_2_helper() == return_positive(); +} + +static +int test_yield_3_helper(void) +{ + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_YIELD(return return_positive()); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + _SEH2_YIELD(return return_zero()); + } + _SEH2_END; + + _SEH2_YIELD(return return_zero()); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + _SEH2_YIELD(return return_zero()); + } + _SEH2_END; + + return return_zero(); +} + +DEFINE_TEST(yield_3) +{ + return test_yield_3_helper() == return_positive(); +} + +static +int test_yield_4_helper(void) +{ + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + _SEH2_YIELD(return return_zero()); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + _SEH2_YIELD(return return_positive()); + } + _SEH2_END; + + _SEH2_YIELD(return return_zero()); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + _SEH2_YIELD(return return_zero()); + } + _SEH2_END; + + return return_zero(); +} + +DEFINE_TEST(yield_4) +{ + return test_yield_4_helper() == return_positive(); +} + +static int test_yield_5_ret; + +static +int test_yield_5_helper(void) +{ + test_yield_5_ret = return_zero(); + + _SEH2_TRY + { + _SEH2_YIELD(return return_positive()); + } + _SEH2_FINALLY + { + test_yield_5_ret = return_positive(); + } + _SEH2_END; + + return return_zero(); +} + +DEFINE_TEST(yield_5) +{ + return test_yield_5_helper() == return_positive() && test_yield_5_ret == return_positive(); +} + +int test_yield_6_ret; + +static +int test_yield_6_helper(void) +{ + test_yield_6_ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_YIELD(return return_positive()); + } + _SEH2_FINALLY + { + test_yield_6_ret = return_positive(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + test_yield_6_ret += return_one(); + } + _SEH2_END; + + return return_zero(); +} + +DEFINE_TEST(yield_6) +{ + return test_yield_6_helper() == return_positive() && test_yield_6_ret == return_positive() + return_one(); +} +//}}} + +/* Termination blocks *///{{{ +DEFINE_TEST(finally_1) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + ret = return_arg(ret); + } + _SEH2_FINALLY + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(finally_2) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + ret = return_arg(ret); + _SEH2_LEAVE; + } + _SEH2_FINALLY + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(finally_3) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + ret = return_arg(ret); + _SEH2_YIELD(goto leave); + } + _SEH2_FINALLY + { + ret = return_positive(); + } + _SEH2_END; + +leave: + return ret == return_positive(); +} + +static int test_finally_4_ret; + +static int test_finally_4_helper(void) +{ + test_finally_4_ret = return_zero(); + + _SEH2_TRY + { + test_finally_4_ret = return_arg(test_finally_4_ret); + _SEH2_YIELD(return return_positive()); + } + _SEH2_FINALLY + { + test_finally_4_ret = return_positive(); + } + _SEH2_END; + + return return_zero(); +} + +DEFINE_TEST(finally_4) +{ + return test_finally_4_helper() == return_positive() && test_finally_4_ret; +} + +DEFINE_TEST(finally_5) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_FINALLY + { + ret = return_positive(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(finally_6) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + ret = return_arg(ret); + } + _SEH2_FINALLY + { + if(ret == return_zero()) + ret = return_positive(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + if(ret == return_positive()) + ret = return_positive() + return_one(); + } + _SEH2_END; + + return ret == return_positive() + return_one(); +} + +DEFINE_TEST(finally_7) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + ret = return_arg(ret); + _SEH2_LEAVE; + } + _SEH2_FINALLY + { + if(ret == return_zero()) + ret = return_positive(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + if(ret == return_positive()) + ret = return_positive() + return_one(); + } + _SEH2_END; + + return ret == return_positive() + return_one(); +} + +DEFINE_TEST(finally_8) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + ret = return_arg(ret); + _SEH2_YIELD(goto leave); + } + _SEH2_FINALLY + { + if(ret == return_zero()) + ret = return_positive(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + if(ret == return_positive()) + ret = return_positive() + return_one(); + } + _SEH2_END; + +leave: + return ret == return_positive() + return_one(); +} + +static int test_finally_9_ret; + +static int test_finally_9_helper(void) +{ + test_finally_9_ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + test_finally_9_ret = return_arg(test_finally_9_ret); + _SEH2_YIELD(return return_positive()); + } + _SEH2_FINALLY + { + if(test_finally_9_ret == return_zero()) + test_finally_9_ret = return_positive(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + if(test_finally_9_ret == return_positive()) + test_finally_9_ret = return_positive() + return_one(); + } + _SEH2_END; + + return return_zero(); +} + +DEFINE_TEST(finally_9) +{ + return test_finally_9_helper() == return_positive() && test_finally_9_ret == return_positive() + return_one(); +} + +DEFINE_TEST(finally_10) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_FINALLY + { + if(ret == return_zero()) + ret = return_positive(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + if(ret == return_positive()) + ret = return_positive() + return_one(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive() + return_one(); +} + +DEFINE_TEST(finally_11) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_TRY + { + ret = return_arg(ret); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + ret = return_positive(); + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + if(ret == return_positive()) + ret += return_one(); + } + _SEH2_END; + + return ret == return_positive() + return_one(); +} + +DEFINE_TEST(finally_12) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_TRY + { + ret = return_arg(ret); + } + _SEH2_FINALLY + { + ret = return_positive(); + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + if(ret == return_positive()) + ret += return_one(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + if(ret == return_positive() + return_one()) + ret += return_one(); + } + _SEH2_END; + + return ret == return_positive() + return_one() + return_one(); +} + +#if 0 +static int test_finally_13_ret; + +static +void test_finally_13_helper(void) +{ + test_finally_13_ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + test_finally_13_ret = return_positive(); + _SEH2_YIELD(return); + test_finally_13_ret = return_zero(); + } + _SEH2_FINALLY + { + if(test_finally_13_ret == return_positive()) + test_finally_13_ret += return_one(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + if(test_finally_13_ret == return_positive() + return_one()) + test_finally_13_ret += return_one(); + + RaiseException(0xE00DEAD0, 0, 0, NULL); + test_finally_13_ret = return_zero(); + } + _SEH2_END; + + test_finally_13_ret = return_zero(); +} + +DEFINE_TEST(finally_13) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + ret = return_arg(ret); + test_finally_13_helper(); + ret = return_zero(); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive() && test_finally_13_ret == return_positive() + return_one() + return_one(); +} + +static int test_finally_14_ret; + +static +void test_finally_14_helper(void) +{ + test_finally_14_ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_TRY + { + test_finally_14_ret = return_positive(); + RaiseException(0xE00DEAD0, 0, 0, NULL); + test_finally_14_ret = return_zero(); + } + _SEH2_FINALLY + { + if(test_finally_14_ret == return_positive()) + test_finally_14_ret += return_one(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + if(test_finally_14_ret == return_positive() + return_one()) + test_finally_14_ret += return_one(); + + RaiseException(0xE00DEAD0, 0, 0, NULL); + test_finally_14_ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + test_finally_14_ret = return_zero(); + } + _SEH2_END; + + test_finally_14_ret = return_zero(); +} + +DEFINE_TEST(finally_14) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + ret = return_arg(ret); + test_finally_14_helper(); + ret = return_zero(); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_positive(); + } + _SEH2_END; + + return ret == return_positive() && test_finally_14_ret == return_positive() + return_one() + return_one(); +} +#endif +//}}} + +/* _SEH2_GetExceptionInformation() *///{{{ +static +int verify_xpointers(struct _EXCEPTION_POINTERS * ep, DWORD code, DWORD flags, DWORD argc, const ULONG_PTR * argv, int * ret, int filter) +{ + *ret = + ep && + ep->ExceptionRecord && + ep->ContextRecord && + ep->ExceptionRecord->ExceptionCode == code && + ep->ExceptionRecord->ExceptionFlags == flags && + ep->ExceptionRecord->NumberParameters == argc && + (argv || !argc) && + memcmp(ep->ExceptionRecord->ExceptionInformation, argv, sizeof(argv[0]) * argc) == 0; + + if(*ret) + *ret = return_positive(); + + return filter; +} + +DEFINE_TEST(xpointers_1) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, 0, 0, NULL, &ret, EXCEPTION_EXECUTE_HANDLER)) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_2) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 0, NULL); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 0, NULL, &ret, EXCEPTION_EXECUTE_HANDLER)) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_3) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 0, args); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 0, args, &ret, EXCEPTION_EXECUTE_HANDLER)) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_4) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 1, args); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 1, args, &ret, EXCEPTION_EXECUTE_HANDLER)) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_5) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 2, args); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 2, args, &ret, EXCEPTION_EXECUTE_HANDLER)) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_6) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 3, args); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 3, args, &ret, EXCEPTION_EXECUTE_HANDLER)) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_7) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_arg(ret); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, 0, 0, NULL, &ret, EXCEPTION_CONTINUE_EXECUTION)) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_8) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, args); + ret = return_arg(ret); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, 0, 0, args, &ret, EXCEPTION_CONTINUE_EXECUTION)) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_9) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 1, args); + ret = return_arg(ret); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, 0, 1, args, &ret, EXCEPTION_CONTINUE_EXECUTION)) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_10) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 2, args); + ret = return_arg(ret); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, 0, 2, args, &ret, EXCEPTION_CONTINUE_EXECUTION)) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_11) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 3, args); + ret = return_arg(ret); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, 0, 3, args, &ret, EXCEPTION_CONTINUE_EXECUTION)) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_12) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 0, NULL); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 0, NULL, &ret, EXCEPTION_CONTINUE_SEARCH)) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_13) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 0, args); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 0, args, &ret, EXCEPTION_CONTINUE_SEARCH)) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_14) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 1, args); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 1, args, &ret, EXCEPTION_CONTINUE_SEARCH)) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_15) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 2, args); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 2, args, &ret, EXCEPTION_CONTINUE_SEARCH)) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xpointers_16) +{ + static int ret; + static const ULONG_PTR args[] = { 1, 2, 12345 }; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 3, args); + } + _SEH2_EXCEPT(verify_xpointers(_SEH2_GetExceptionInformation(), 0xE00DEAD0, EXCEPTION_NONCONTINUABLE, 3, args, &ret, EXCEPTION_CONTINUE_SEARCH)) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} +//}}} + +/* _SEH2_GetExceptionCode() *///{{{ +static +int verify_xcode(int code, int xcode, int * ret, int filter) +{ + *ret = code == xcode; + + if(*ret) + *ret = return_positive(); + + return filter; +} + +DEFINE_TEST(xcode_1) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(verify_xcode(_SEH2_GetExceptionCode(), 0xE00DEAD0, &ret, EXCEPTION_EXECUTE_HANDLER)) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xcode_2) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_arg(ret); + } + _SEH2_EXCEPT(verify_xcode(_SEH2_GetExceptionCode(), 0xE00DEAD0, &ret, EXCEPTION_CONTINUE_EXECUTION)) + { + ret = return_zero(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(xcode_3) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_EXCEPT(verify_xcode(_SEH2_GetExceptionCode(), 0xE00DEAD0, &ret, EXCEPTION_CONTINUE_SEARCH)) + { + ret = return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} +//}}} + +/* _SEH2_AbnormalTermination() *///{{{ +DEFINE_TEST(abnorm_1) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + ret = return_arg(ret); + } + _SEH2_FINALLY + { + ret = _SEH2_AbnormalTermination() ? return_zero() : return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(abnorm_2) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_LEAVE; + } + _SEH2_FINALLY + { + ret = _SEH2_AbnormalTermination() ? return_zero() : return_positive(); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(abnorm_3) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_YIELD(goto leave); + } + _SEH2_FINALLY + { + ret = _SEH2_AbnormalTermination() ? return_positive() : return_zero(); + } + _SEH2_END; + +leave: + return ret == return_positive(); +} + +DEFINE_TEST(abnorm_4) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_FINALLY + { + ret = _SEH2_AbnormalTermination() ? return_positive() : return_zero(); + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive(); +} + +DEFINE_TEST(abnorm_5) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + ret = return_arg(ret); + } + _SEH2_FINALLY + { + ret = _SEH2_AbnormalTermination() ? return_zero() : return_positive(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + ret = ret == return_positive() && !_SEH2_AbnormalTermination() ? return_positive() + return_one() : ret; + } + _SEH2_END; + + return ret == return_positive() + return_one(); +} + +DEFINE_TEST(abnorm_6) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_LEAVE; + } + _SEH2_FINALLY + { + ret = _SEH2_AbnormalTermination() ? return_zero() : return_positive(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + ret = ret == return_positive() && !_SEH2_AbnormalTermination() ? return_positive() + return_one() : ret; + } + _SEH2_END; + + return ret == return_positive() + return_one(); +} + +DEFINE_TEST(abnorm_7) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_YIELD(goto leave); + } + _SEH2_FINALLY + { + ret = _SEH2_AbnormalTermination() ? return_positive() : return_zero(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + ret = ret == return_positive() && _SEH2_AbnormalTermination() ? return_positive() + return_one() : ret; + } + _SEH2_END; + +leave: + return ret == return_positive() + return_one(); +} + +DEFINE_TEST(abnorm_8) +{ + static int ret; + + ret = return_zero(); + + _SEH2_TRY + { + _SEH2_TRY + { + _SEH2_TRY + { + RaiseException(0xE00DEAD0, 0, 0, NULL); + ret = return_zero(); + } + _SEH2_FINALLY + { + ret = _SEH2_AbnormalTermination() ? return_positive() : return_zero(); + } + _SEH2_END; + } + _SEH2_FINALLY + { + ret = ret == return_positive() && _SEH2_AbnormalTermination() ? return_positive() + return_one() : ret; + } + _SEH2_END; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + ret = return_arg(ret); + } + _SEH2_END; + + return ret == return_positive() + return_one(); +} +//}}} + +/* System support *///{{{ +// TODO +//}}} + +/* CPU faults *///{{{ +// TODO +//}}} + +#define USE_TEST_NAME_(NAME_) # NAME_ +#define USE_TEST_NAME(NAME_) USE_TEST_NAME_(NAME_) +#define USE_TEST(NAME_) { USE_TEST_NAME(NAME_), NAME_ } + +const struct test winetest_testlist[] = +{ + USE_TEST(empty_1), + USE_TEST(empty_2), + USE_TEST(empty_3), + USE_TEST(empty_4), + USE_TEST(empty_5), + USE_TEST(empty_6), + USE_TEST(empty_7), + USE_TEST(empty_8), + + USE_TEST(execute_handler_1), + USE_TEST(continue_execution_1), + USE_TEST(continue_search_1), + USE_TEST(execute_handler_2), + USE_TEST(continue_execution_2), + + USE_TEST(execute_handler_3), + USE_TEST(continue_execution_3), + USE_TEST(continue_search_2), + USE_TEST(execute_handler_4), + USE_TEST(continue_execution_4), + + USE_TEST(execute_handler_5), + USE_TEST(continue_execution_5), + USE_TEST(continue_search_3), + USE_TEST(execute_handler_6), + USE_TEST(continue_execution_6), + + USE_TEST(execute_handler_7), + USE_TEST(continue_execution_7), + USE_TEST(continue_search_4), + USE_TEST(execute_handler_8), + USE_TEST(continue_execution_8), + + USE_TEST(execute_handler_9), + USE_TEST(continue_execution_9), + USE_TEST(continue_search_5), + USE_TEST(execute_handler_10), + USE_TEST(continue_execution_10), + + USE_TEST(execute_handler_11), + USE_TEST(continue_execution_11), + USE_TEST(continue_search_6), + USE_TEST(execute_handler_12), + USE_TEST(continue_execution_12), + + USE_TEST(leave_1), + USE_TEST(leave_2), + USE_TEST(leave_3), + USE_TEST(leave_4), + USE_TEST(leave_5), + USE_TEST(leave_6), + + USE_TEST(yield_1), + USE_TEST(yield_2), + USE_TEST(yield_3), + USE_TEST(yield_4), + USE_TEST(yield_5), + USE_TEST(yield_6), + + USE_TEST(finally_1), + USE_TEST(finally_2), + USE_TEST(finally_3), + USE_TEST(finally_4), + USE_TEST(finally_5), + USE_TEST(finally_6), + USE_TEST(finally_7), + USE_TEST(finally_8), + USE_TEST(finally_9), + USE_TEST(finally_10), + USE_TEST(finally_11), + USE_TEST(finally_12), +#if 0 + USE_TEST(finally_13), + USE_TEST(finally_14), +#endif + + USE_TEST(xpointers_1), + USE_TEST(xpointers_2), + USE_TEST(xpointers_3), + USE_TEST(xpointers_4), + USE_TEST(xpointers_5), + USE_TEST(xpointers_6), + USE_TEST(xpointers_7), + USE_TEST(xpointers_8), + USE_TEST(xpointers_9), + USE_TEST(xpointers_10), + USE_TEST(xpointers_11), + USE_TEST(xpointers_12), + USE_TEST(xpointers_13), + USE_TEST(xpointers_14), + USE_TEST(xpointers_15), + USE_TEST(xpointers_16), + + USE_TEST(xcode_1), + USE_TEST(xcode_2), + USE_TEST(xcode_3), + + USE_TEST(abnorm_1), + USE_TEST(abnorm_2), + USE_TEST(abnorm_3), + USE_TEST(abnorm_4), + USE_TEST(abnorm_5), + USE_TEST(abnorm_6), + USE_TEST(abnorm_7), + USE_TEST(abnorm_8), + + { 0, 0 } +}; + +static +LONG WINAPI unhandled_exception(PEXCEPTION_POINTERS ExceptionInfo) +{ + ok(0, "unhandled exception %08lX thrown from %p\n", ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo->ExceptionRecord->ExceptionAddress); + return EXCEPTION_CONTINUE_SEARCH; +} + +#if defined(_M_IX86) +struct volatile_context +{ + void * esp; + void * ebp; + void * ebx; + void * esi; + void * edi; +}; +#else +#error TODO +#endif + +#if defined(__GNUC__) +static +__attribute__((noinline)) +int sanity_check(int ret, struct volatile_context * before, struct volatile_context * after) +{ + if(ret && memcmp(before, after, sizeof(before))) + ok(0, "volatile context corrupted\n"); + + return ret; +} + +static +__attribute__((noinline)) +int call_test(int (* func)(void)) +{ + static int ret; + static LPTOP_LEVEL_EXCEPTION_FILTER prev_unhandled_exception; + + prev_unhandled_exception = SetUnhandledExceptionFilter(&unhandled_exception); + +#if defined(__i386__) + static struct volatile_context before, after; + + __asm__ __volatile__ + ( + "mov %%esp, 0x00 + %c[before]\n" + "mov %%ebp, 0x04 + %c[before]\n" + "mov %%ebx, 0x08 + %c[before]\n" + "mov %%esi, 0x0c + %c[before]\n" + "mov %%edi, 0x10 + %c[before]\n" + "call *%[test]\n" + "mov %%esp, 0x00 + %c[after]\n" + "mov %%ebp, 0x04 + %c[after]\n" + "mov %%ebx, 0x08 + %c[after]\n" + "mov %%esi, 0x0c + %c[after]\n" + "mov %%edi, 0x10 + %c[after]\n" + "push %[after]\n" + "push %[before]\n" + "push %[ret]\n" + "call %c[sanity_check]\n" + "pop %%ecx\n" + "pop %%ecx\n" + "pop %%ecx\n" : + [ret] "=a" (ret) : + [test] "r" (func), [before] "i" (&before), [after] "i" (&after), [sanity_check] "i" (&sanity_check) : + "ebx", "ecx", "edx", "esi", "edi", "flags", "memory" + ); +#else +#error TODO +#endif + + SetUnhandledExceptionFilter(prev_unhandled_exception); + return ret; +} +#else +#error TODO +#endif + +/* EOF */ Propchange: trunk/rostests/tests/pseh2/psehtest.c ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/rostests/tests/pseh2/psehtest2.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/tests/pseh2/psehtest2.c?r…
============================================================================== --- trunk/rostests/tests/pseh2/psehtest2.c (added) +++ trunk/rostests/tests/pseh2/psehtest2.c [iso-8859-1] Tue Dec 23 13:47:30 2008 @@ -1,0 +1,138 @@ +extern +int return_arg(int arg) +{ + return arg; +} + +extern +void no_op(void) +{ +} + +extern +int return_zero(void) +{ + return 0; +} + +extern +int return_positive(void) +{ + return 1234; +} + +extern +int return_negative(void) +{ + return -1234; +} + +extern +int return_one(void) +{ + return 1; +} + +extern +int return_minusone(void) +{ + return -1; +} + +extern +int return_zero_2(void * p) +{ + return 0; +} + +extern +int return_positive_2(void * p) +{ + return 1234; +} + +extern +int return_negative_2(void * p) +{ + return -1234; +} + +extern +int return_one_2(void * p) +{ + return 1; +} + +extern +int return_minusone_2(void * p) +{ + return -1; +} + +extern +int return_zero_3(int n) +{ + return 0; +} + +extern +int return_positive_3(int n) +{ + return 1234; +} + +extern +int return_negative_3(int n) +{ + return -1234; +} + +extern +int return_one_3(int n) +{ + return 1; +} + +extern +int return_minusone_3(int n) +{ + return -1; +} + +extern +int return_zero_4(void * p, int n) +{ + return 0; +} + +extern +int return_positive_4(void * p, int n) +{ + return 1234; +} + +extern +int return_negative_4(void * p, int n) +{ + return -1234; +} + +extern +int return_one_4(void * p, int n) +{ + return 1; +} + +extern +int return_minusone_4(void * p, int n) +{ + return -1; +} + +extern +void set_positive(int * p) +{ + *p = 1234; +} + +/* EOF */ Propchange: trunk/rostests/tests/pseh2/psehtest2.c ------------------------------------------------------------------------------ svn:eol-style = native
16 years
1
0
0
0
[sginsberg] 38310: - CCHAR is 'char', not 'const char'
by sginsberg@svn.reactos.org
Author: sginsberg Date: Tue Dec 23 13:24:35 2008 New Revision: 38310 URL:
http://svn.reactos.org/svn/reactos?rev=38310&view=rev
Log: - CCHAR is 'char', not 'const char' Modified: trunk/reactos/include/host/typedefs.h Modified: trunk/reactos/include/host/typedefs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/host/typedefs.h?re…
============================================================================== --- trunk/reactos/include/host/typedefs.h [iso-8859-1] (original) +++ trunk/reactos/include/host/typedefs.h [iso-8859-1] Tue Dec 23 13:24:35 2008 @@ -47,8 +47,8 @@ /* Basic types Emulate a LLP64 memory model using a LP64 compiler */ typedef void VOID, *PVOID; -typedef char CHAR, *PCHAR, *PSTR; -typedef const char CCHAR, *PCSTR, *LPCSTR; +typedef char CHAR, CCHAR, *PCHAR, *PSTR; +typedef const char *PCSTR, *LPCSTR; typedef unsigned char UCHAR, *PUCHAR, BYTE, *LPBYTE, BOOLEAN, *PBOOLEAN; typedef short SHORT, *PSHORT; typedef unsigned short USHORT, *PUSHORT, WORD, *PWORD, *LPWORD, WCHAR, *PWCHAR, *PWSTR, *LPWSTR;
16 years
1
0
0
0
[jimtabor] 38309: - Add One Param Call GetCursorPos. This will be used when GDIPOINTER is deprecated.
by jimtabor@svn.reactos.org
Author: jimtabor Date: Tue Dec 23 13:04:40 2008 New Revision: 38309 URL:
http://svn.reactos.org/svn/reactos?rev=38309&view=rev
Log: - Add One Param Call GetCursorPos. This will be used when GDIPOINTER is deprecated. Modified: trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c Modified: trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c [iso-8859-1] Tue Dec 23 13:04:40 2008 @@ -396,9 +396,26 @@ /* FIXME: Should use UserEnterShared */ RETURN(IntEnumClipboardFormats(Param)); - case ONEPARAM_ROUTINE_CSRSS_GUICHECK: + case ONEPARAM_ROUTINE_CSRSS_GUICHECK: IntUserManualGuiCheck(Param); RETURN(TRUE); + + case ONEPARAM_ROUTINE_GETCURSORPOS: + { + BOOL Ret = TRUE; + PPOINTL pptl; + _SEH2_TRY + { + pptl = (PPOINTL)Param; + *pptl = gpsi->ptCursor; + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + { + Ret = FALSE; + } + _SEH2_END; + RETURN(Ret); + } } DPRINT1("Calling invalid routine number 0x%x in NtUserCallOneParam(), Param=0x%x\n", Routine, Param);
16 years
1
0
0
0
[sginsberg] 38308: - Welcome -w. Goodbye 3rd party warnings.
by sginsberg@svn.reactos.org
Author: sginsberg Date: Tue Dec 23 13:00:05 2008 New Revision: 38308 URL:
http://svn.reactos.org/svn/reactos?rev=38308&view=rev
Log: - Welcome -w. Goodbye 3rd party warnings. Modified: trunk/reactos/dll/3rdparty/mesa32/mesa32.rbuild Modified: trunk/reactos/dll/3rdparty/mesa32/mesa32.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/3rdparty/mesa32/mesa32…
============================================================================== --- trunk/reactos/dll/3rdparty/mesa32/mesa32.rbuild [iso-8859-1] (original) +++ trunk/reactos/dll/3rdparty/mesa32/mesa32.rbuild [iso-8859-1] Tue Dec 23 13:00:05 2008 @@ -3,6 +3,7 @@ <module name="mesa32" type="win32dll" entrypoint="0" baseaddress="${BASEADDRESS_MESA32}" installbase="system32" installname="mesa32.dll" allowwarnings="true" crt="msvcrt"> <importlibrary definition="src/drivers/windows/icd/mesa.def" /> <linkerflag>-enable-stdcall-fixup</linkerflag> + <compilerflag>-w</compilerflag> <library>ntdll</library> <library>kernel32</library> <library>user32</library>
16 years
1
0
0
0
[sginsberg] 38307: - Never, ever, mix warning fixes with code logic changes. Should fix setup boot.
by sginsberg@svn.reactos.org
Author: sginsberg Date: Tue Dec 23 12:46:59 2008 New Revision: 38307 URL:
http://svn.reactos.org/svn/reactos?rev=38307&view=rev
Log: - Never, ever, mix warning fixes with code logic changes. Should fix setup boot. Modified: trunk/reactos/drivers/filesystems/ext2/src/dircntrl.c trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c Modified: trunk/reactos/drivers/filesystems/ext2/src/dircntrl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/dircntrl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ext2/src/dircntrl.c [iso-8859-1] Tue Dec 23 12:46:59 2008 @@ -429,7 +429,7 @@ { // Read Failure DebugTrace(DEBUG_TRACE_MISC, "Cache read failiure while reading in volume meta data", 0); - try_return( RC = STATUS_ACCESS_DENIED ); + try_return(); } else { Modified: trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c [iso-8859-1] Tue Dec 23 12:46:59 2008 @@ -255,7 +255,7 @@ DebugTrace(DEBUG_TRACE_MOUNT, "OEM[%s]", BootSector->Oem); if (BootSector->Oem[0]) { - try_return (Status = STATUS_WRONG_VOLUME); + try_return(); } // Allocating memory for reading in Super Block...
16 years
1
0
0
0
[sginsberg] 38306: - Make KS compile warning-free, add a note to janderwald (!!!)
by sginsberg@svn.reactos.org
Author: sginsberg Date: Tue Dec 23 12:28:07 2008 New Revision: 38306 URL:
http://svn.reactos.org/svn/reactos?rev=38306&view=rev
Log: - Make KS compile warning-free, add a note to janderwald (!!!) Modified: trunk/reactos/drivers/ksfilter/ks/ks.rbuild trunk/reactos/drivers/ksfilter/ks/worker.c Modified: trunk/reactos/drivers/ksfilter/ks/ks.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/ks.rbu…
============================================================================== --- trunk/reactos/drivers/ksfilter/ks/ks.rbuild [iso-8859-1] (original) +++ trunk/reactos/drivers/ksfilter/ks/ks.rbuild [iso-8859-1] Tue Dec 23 12:28:07 2008 @@ -1,6 +1,6 @@ <?xml version="1.0"?> <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> -<module name="ks" type="kernelmodedriver" installbase="system32/drivers" installname="ks.sys" allowwarnings="true"> +<module name="ks" type="kernelmodedriver" installbase="system32/drivers" installname="ks.sys"> <include base="ks">.</include> <include base="ks">..</include> <include base="ks">../include</include> Modified: trunk/reactos/drivers/ksfilter/ks/worker.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/worker…
============================================================================== --- trunk/reactos/drivers/ksfilter/ks/worker.c [iso-8859-1] (original) +++ trunk/reactos/drivers/ksfilter/ks/worker.c [iso-8859-1] Tue Dec 23 12:28:07 2008 @@ -62,8 +62,8 @@ IN PKSWORKER Worker) { KS_WORKER * KsWorker; - KIRQL OldIrql; - ULONG bWait = FALSE; + KIRQL OldIrql = 0; // hack!!! janderwald!!! + //ULONG bWait = FALSE; if (!Worker) return;
16 years
1
0
0
0
[sginsberg] 38305: - Forgot a comment
by sginsberg@svn.reactos.org
Author: sginsberg Date: Tue Dec 23 12:18:23 2008 New Revision: 38305 URL:
http://svn.reactos.org/svn/reactos?rev=38305&view=rev
Log: - Forgot a comment Modified: trunk/reactos/lib/drivers/oskittcp/include/oskitfreebsd.h Modified: trunk/reactos/lib/drivers/oskittcp/include/oskitfreebsd.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/oskittcp/inclu…
============================================================================== --- trunk/reactos/lib/drivers/oskittcp/include/oskitfreebsd.h [iso-8859-1] (original) +++ trunk/reactos/lib/drivers/oskittcp/include/oskitfreebsd.h [iso-8859-1] Tue Dec 23 12:18:23 2008 @@ -1,6 +1,7 @@ #ifndef _OSKITFREEBSD_H #define _OSKITFREEBSD_H +// Hacky? Yep #undef PAGE_SIZE #undef PAGE_SHIFT #include <ntddk.h>
16 years
1
0
0
0
← Newer
1
...
16
17
18
19
20
21
22
...
71
Older →
Jump to page:
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Results per page:
10
25
50
100
200