You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +02:00 
			
		
		
		
	Add gcc 9 support.
A number of tests have been updated and Fedora 30 has been added to the test suite so the unit tests can run on gcc 9. Stop running unit tests on co6/7 since we appear to have ample unit test coverage.
This commit is contained in:
		| @@ -455,7 +455,8 @@ sub run | ||||
|                 # Flags used to build test.c | ||||
|                 my $strTestFlags = | ||||
|                     ($self->{bDebug} ? '-DDEBUG_TEST_TRACE ' : '') . | ||||
|                     '-O0' . ($self->{oTest}->{&TEST_VM} ne VM_U12 ? ' -ftree-coalesce-vars' : '') . | ||||
|                     ($self->{oTest}->{&TEST_VM} eq VM_F30 ? '-O2' : '-O0') . | ||||
|                     ($self->{oTest}->{&TEST_VM} ne VM_U12 ? ' -ftree-coalesce-vars' : '') . | ||||
|                     (vmCoverageC($self->{oTest}->{&TEST_VM}) && $self->{bCoverageUnit} ? | ||||
|                         ' -fprofile-arcs -ftest-coverage' : '') . | ||||
|                     ($self->{oTest}->{&TEST_CTESTDEF} ? " $self->{oTest}->{&TEST_CTESTDEF}" : ''); | ||||
| @@ -466,7 +467,8 @@ sub run | ||||
|  | ||||
|                 # Flags used to build all other files | ||||
|                 my $strBuildFlags = | ||||
|                     ($self->{bOptimize} ? '-O2' : '-O0' . ($self->{oTest}->{&TEST_VM} ne VM_U12 ? ' -ftree-coalesce-vars' : '')); | ||||
|                     ($self->{bOptimize} || $self->{oTest}->{&TEST_VM} eq VM_F30 ? | ||||
|                         '-O2' : '-O0' . ($self->{oTest}->{&TEST_VM} ne VM_U12 ? ' -ftree-coalesce-vars' : '')); | ||||
|  | ||||
|                 buildPutDiffers( | ||||
|                     $self->{oStorageTest}, "$self->{strGCovPath}/buildflags", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user