You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +02:00 
			
		
		
		
	Remove old coverage data before starting new test.
The old coverage data has been recorded so it is no longer needed. In newer versions of gcc leaving this file around can lead to an error when writing profile data after forking off to a non-pgbackrest binary (which we do in some unit tests).
This commit is contained in:
		| @@ -254,6 +254,8 @@ sub run | ||||
|                 ($self->{oTest}->{&TEST_VM} ne VM_NONE  ? 'docker exec -i -u ' . TEST_USER . " ${strImage} " : '') . | ||||
|                 "bash -l -c '" . | ||||
|                 "cd $self->{strGCovPath} && " . | ||||
|                 # Remove coverage data from last run | ||||
|                 "rm -f test.gcda && " . | ||||
|                 "make -j $self->{iBuildMax} -s 2>&1 &&" . | ||||
|                 ($self->{oTest}->{&TEST_VM} ne VM_CO6 && $self->{bValgrindUnit} && | ||||
|                     $self->{oTest}->{&TEST_TYPE} ne TESTDEF_PERFORMANCE ? | ||||
|   | ||||
		Reference in New Issue
	
	Block a user