Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Issue #36: fix script output varying due to timing. #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions expected/corner_cases.out
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ save_own_pid

(1 row)

step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state
--------------
(0 rows)
Expand All @@ -33,8 +34,9 @@ save_own_pid
(1 row)

step s1_disable_pg_qs: set pg_query_state.enable to off;
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: query execution statistics disabled
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state
--------------
(0 rows)
Expand All @@ -49,8 +51,9 @@ save_own_pid

(1 row)

step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state
--------------
(0 rows)
Expand All @@ -65,8 +68,9 @@ save_own_pid

(1 row)

step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state
--------------
(0 rows)
Expand All @@ -81,5 +85,6 @@ save_own_pid

(1 row)

step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
step s2_pg_qs_counterpart: <... completed>
ERROR: permission denied
15 changes: 10 additions & 5 deletions expected/corner_cases_2.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -24,8 +25,9 @@ save_own_pid


step s1_disable_pg_qs: set pg_query_state.enable to off;
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: query execution statistics disabled
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -36,8 +38,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -48,8 +51,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -60,5 +64,6 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
step s2_pg_qs_counterpart: <... completed>
ERROR: permission denied
15 changes: 10 additions & 5 deletions expected/corner_cases_3.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -24,8 +25,9 @@ save_own_pid


step s1_disable_pg_qs: set pg_query_state.enable to off;
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: query execution statistics disabled
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -36,8 +38,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -48,8 +51,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -60,7 +64,8 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
step s2_pg_qs_counterpart: <... completed>
ERROR: permission denied
unused step name: s1_enable_pg_qs
unused step name: s1_pg_qs_counterpart
Expand Down
10 changes: 5 additions & 5 deletions specs/corner_cases.spec
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ permutation "s1_pg_qs_1"
permutation "s1_pg_qs_2"

# Check idle
permutation "s1_save_pid" "s2_pg_qs_counterpart"
permutation "s1_save_pid" "s2_pg_qs_counterpart"(*)

# Check module disable
permutation "s1_save_pid" "s1_disable_pg_qs" "s2_pg_qs_counterpart"
permutation "s1_save_pid" "s1_disable_pg_qs" "s2_pg_qs_counterpart"(*)

# Check roles correspondence
permutation "s1_set_bob" "s2_set_bob" "s1_save_pid" "s2_pg_qs_counterpart"
permutation "s1_set_bob" "s2_set_su" "s1_save_pid" "s2_pg_qs_counterpart"
permutation "s1_set_bob" "s2_set_alice" "s1_save_pid" "s2_pg_qs_counterpart"
permutation "s1_set_bob" "s2_set_bob" "s1_save_pid" "s2_pg_qs_counterpart"(*)
permutation "s1_set_bob" "s2_set_su" "s1_save_pid" "s2_pg_qs_counterpart"(*)
permutation "s1_set_bob" "s2_set_alice" "s1_save_pid" "s2_pg_qs_counterpart"(*)