diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-08-24 11:45:05 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-08-24 11:45:05 +0900 |
commit | 989d23b04beac0c26f44c379b04ac781eaa4265e (patch) | |
tree | 73adaa8e3a9c4a9a5b0f744c6f1e29e7cc4d73c1 /src/test/isolation/isolationtester.h | |
parent | 9903338b5ea59093d77cfe50ec0b1c22d4a7d843 (diff) |
Detect unused steps in isolation specs and do some cleanup
This is useful for developers to find out if an isolation spec is
over-engineered or if it needs more work by warning at the end of a
test run if a step is not used, generating a failure with extra diffs.
While on it, clean up all the specs which include steps not used in any
permutations to simplify them.
Author: Michael Paquier
Reviewed-by: Asim Praveen, Melanie Plageman
Discussion: https://postgr.es/m/20190819080820.GG18166@paquier.xyz
Diffstat (limited to 'src/test/isolation/isolationtester.h')
-rw-r--r-- | src/test/isolation/isolationtester.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/isolation/isolationtester.h b/src/test/isolation/isolationtester.h index 7f91e6433ff..d9d2a14ecf4 100644 --- a/src/test/isolation/isolationtester.h +++ b/src/test/isolation/isolationtester.h @@ -29,6 +29,7 @@ struct Session struct Step { int session; + bool used; char *name; char *sql; char *errormsg; |