Ticket #396 (closed patch: fixed)
32/64-bit cpu in smolder report
Reported by: | rurban | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | website | Version: | |
Severity: | medium | Keywords: | 64bit |
Cc: | Coke | Language: | |
Patch status: | applied | Platform: |
Description (last modified by rurban) (diff)
I miss crucial 32/64bit info on the smolder reports. I want to add it to the cpuarch, similar to amd64 or ia64.
So ppc is either pcc32 or ppc64, alpha is alpha32 or alpha64, ... sun4 should be sparc32 or sparc64. Just to make it clear.
Ok to apply?
--- parrot-svn.orig/lib/Parrot/Harness/Smoke.pm 2009-03-03 19:54:35.671875000 +0100 +++ parrot-svn/lib/Parrot/Harness/Smoke.pm 2009-03-03 20:32:42.390625000 +0100 @@ -100,8 +100,14 @@ } sub collect_test_environment_data { + # rename sun4 to sparc + my $arch = $PConfig{cpuarch} eq 'sun4' ? 'sparc' : $PConfig{cpuarch}; + # add the 32/64 bit suffix to the cpuarch + if ($PConfig{cpuarch} !~ /\d$/) { + $arch = $PConfig{cpuarch} . (8*$PConfig{wordsize}); + } return ( - 'Architecture' => $PConfig{cpuarch}, + 'Architecture' => $arch, 'Compiler' => _get_compiler_version(), 'DEVEL' => $PConfig{DEVEL}, 'Optimize' => ($PConfig{optimize} || 'none'),
Change History
Note: See
TracTickets for help on using
tickets.