Skip to content

Commit 6ab03fe

Browse files
tsarvelarli9
authored andcommitted
programs/unixbench/pkg/unixbench.patch: resolve "Dc: sqrt(2) to 99 decimal places"
Original UnixBench dc command in dc.dat returns exitcode 1 in current Debian dc versions. This shows as error: Run: "Dc: sqrt(2) to 99 decimal places": Bad wait status: 0x100; aborting Removing the last 'q' from the dc command gives same output with exit 0. Add the dc.dat change to unixbench.patch and re-enable dc tests. Link: https://unix.stackexchange.com/questions/733264/why-does-the-dc-command-exit1-when-using-quit Signed-off-by: Tomi Sarvela <tomi.p.sarvela@intel.com> Signed-off-by: Philip Li <philip.li@intel.com>
1 parent 5962da5 commit 6ab03fe

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

jobs/unixbench.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ unixbench:
3434
- double
3535
- arithoh
3636
- C
37-
# - dc # Run: "Dc: sqrt(2) to 99 decimal places": Bad wait status: 0x100; aborting
37+
- dc
3838
- hanoi
3939
- grep
4040
- sysexec

programs/unixbench/pkg/unixbench.patch

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,14 @@ index 41637bea160e..1b80c378dc1b 100755
7575
my $systemInfo = getSystemInfo($verbose);
7676

7777
# If the number of copies to run was not set, set it to 1
78+
diff --git a/UnixBench/testdir/dc.dat b/UnixBench/testdir/dc.dat
79+
index dbb8f76d0e43..e7bdc3851c87 100644
80+
--- a/UnixBench/testdir/dc.dat
81+
+++ b/UnixBench/testdir/dc.dat
82+
@@ -3,6 +3,5 @@ k
83+
2
84+
v
85+
p
86+
-q
87+
[ calculate the sqrt(2) to 99 decimal places ... John Lions Test ]
88+
[ $Header: dc.dat,v 1.1 87/06/22 14:28:28 kjmcdonell Beta $ ]

0 commit comments

Comments
 (0)