mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	isolationtester: add a few fflush(stderr) calls
The lack of them is causing failures in some BF members. Per Andrew Dunstan.
This commit is contained in:
		
							parent
							
								
									40ed59b286
								
							
						
					
					
						commit
						ca5db759b8
					
				| @ -566,6 +566,7 @@ run_permutation(TestSpec * testspec, int nsteps, Step ** steps) | |||||||
| 			 */ | 			 */ | ||||||
| 			fflush(stdout); | 			fflush(stdout); | ||||||
| 			fprintf(stderr, "invalid permutation detected\n"); | 			fprintf(stderr, "invalid permutation detected\n"); | ||||||
|  | 			fflush(stderr); | ||||||
| 
 | 
 | ||||||
| 			/* Cancel the waiting statement from this session. */ | 			/* Cancel the waiting statement from this session. */ | ||||||
| 			cancel = PQgetCancel(conn); | 			cancel = PQgetCancel(conn); | ||||||
| @ -648,6 +649,7 @@ teardown: | |||||||
| 						testspec->sessions[i]->name, | 						testspec->sessions[i]->name, | ||||||
| 						PQerrorMessage(conns[i + 1])); | 						PQerrorMessage(conns[i + 1])); | ||||||
| 				/* don't exit on teardown failure */ | 				/* don't exit on teardown failure */ | ||||||
|  | 				fflush(stderr); | ||||||
| 			} | 			} | ||||||
| 			PQclear(res); | 			PQclear(res); | ||||||
| 		} | 		} | ||||||
| @ -666,7 +668,7 @@ teardown: | |||||||
| 			fprintf(stderr, "teardown failed: %s", | 			fprintf(stderr, "teardown failed: %s", | ||||||
| 					PQerrorMessage(conns[0])); | 					PQerrorMessage(conns[0])); | ||||||
| 			/* don't exit on teardown failure */ | 			/* don't exit on teardown failure */ | ||||||
| 
 | 			fflush(stderr); | ||||||
| 		} | 		} | ||||||
| 		PQclear(res); | 		PQclear(res); | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user