Previous data-cd data file had some bogus values leading to strange data
being displayed by sar (e.g. average values of 0.00 for CPU).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
00910 LC_ALL=C TZ=GMT ./sar -uw -f tests/data-cd -s 23:59:58 -e 00:00:00 > tests/out.sar-cd.tmp
[Testing options -s/-e on a file contents spanning two consecutive days]
[Work only with very simple file contents (no LINUX RESTART or COMMENT records)]
+ [Note: "11:00:00 PM" is "23:00:00" - "12:00:00 AM" is "00:00:00"]
00912 diff -u tests/out.sar-cd.tmp tests/expected.sar-cd
00920 LC_ALL=C TZ=GMT ./sar -f tests/data.tmp -e 13:30 -z -n DEV -dp > tests/out.sar-z.tmp
00922 diff -u tests/out.sar-z.tmp tests/expected.sar-z
--- /dev/null
+rm -f tests/data-cd.new
+
+rm -f tests/root
+ln -s root1 tests/root
+./sadc --unix_time=1556755197 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null
+
+rm -f tests/root
+ln -s root2 tests/root
+./sadc --unix_time=1556755198 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null
+
+rm -f tests/root
+ln -s root3 tests/root
+./sadc --unix_time=1556755199 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null
+
+rm -f tests/root
+ln -s root4 tests/root
+./sadc --unix_time=1556755200 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null
+
+rm -f tests/root
+ln -s root5 tests/root
+./sadc --unix_time=1556755201 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null