ntdll: Simplify exception tests.
commit94b548fd6286791e6b818f9b104f18975a6eda34
authorPeter Beutner <p.beutner@gmx.net>
Thu, 30 Nov 2006 16:52:50 +0000 (30 17:52 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 1 Dec 2006 11:27:25 +0000 (1 12:27 +0100)
tree6b238854f95bcda6fdff8133f85c387ca6957e47
parent44e6c6b67aede6d5a52c7cc537e3afe426e32f09
ntdll: Simplify exception tests.

- create helper function to setup exception frame and run the test
- lookup function ptr only once
- make "code data" const
- reuse global exception counter
- change alignment test to use stack address to generate an alignment exception. This avoids
  the need to pass an argument, so it can use the created helper function.
  (as the stack is (at least) 4 byte aligned, this works equally well)
dlls/ntdll/tests/exception.c