php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59649 FAIL rrd_info test [tests/rrd_012.phpt]
Submitted: 2011-03-05 04:21 UTC Modified: 2011-03-22 07:19 UTC
From: Fedora at FamilleCollet dot com Assigned: kubelik (profile)
Status: Closed Package: rrd (PECL)
PHP Version: 5.3.5 OS: GNU/Linux (Fedora 14)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Fedora at FamilleCollet dot com
New email:
PHP Version: OS:

 

 [2011-03-05 04:21 UTC] Fedora at FamilleCollet dot com
Description:
------------
This test fails 

On fedora 14, x86_64, rrdtool 1.4.4
003+   string(64) "/dev/shm/php-pecl-rrd-0.10.0/rrd-0.10.0/tests/testData/speed.rrd"
003-   string(61) %s
011+   int(800)
011-   int(740)
033+   int(12)
033-   int(9)
047+   int(6)
047-   int(0)

On fedora 14, i386, rrdtool 1.4.4
003+   string(77) "/builddir/build/BUILD/php-pecl-rrd-0.10.0/rrd-0.10.0/tests/testData/speed.rrd"
003-   string(61) %s
033+   int(6)
033-   int(9)
047+   int(7)
047-   int(0)

On fedora 13, i386, rrdtool 1.3.8
001+ array(25) {
001- array(27) {
003+   string(77) "/builddir/build/BUILD/php-pecl-rrd-0.10.0/rrd-0.10.0/tests/testData/speed.rrd"
003-   string(61) %s
010-   ["header_size"]=>
011-   int(740)
012-   ["ds[speed].index"]=>
013-   int(0)
043+   int(1)
047-   int(0)


It seems to be an arch / rrdtool version issue.
- header_size seems arch dependant and not provided by all rrdtool library version.

It should be usefull to have test which are not arch / rrdtool version dependant.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-06 03:19 UTC] fedora at famillecollet dot com
Patch proposal
http://remi.fedorapeople.org/rrd-tests.patch

This patch fixes this test with rrdtool 1.4.4

(with version 1.3.x some other tests fail..., 
p.e. generated image height is 148 instead of 149)

I could provide you full test results for i386 and x86_64 with rrdtool version 1.3.4, 1.3.8 and 1.4.4 if needed.
 [2011-03-22 07:19 UTC] koubel at seznam dot cz
rrd_info test is more platform and rrd_version independent now.

Please, pack your tests result against current trunk and make it public for download on some url. Then make a new bug as request for more version dependent tests with this url. Then I'll try  maybe make some first test as example, then rest of work will be up to you as patches.

I'll try to make rrd_version() method for possibility to make version dependent tests as you suggest in #22586.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Aug 21 13:01:35 2019 UTC