summaryrefslogtreecommitdiff
path: root/devel/hdf5/patches/patch-tools_test_h5dump_testh5dump.sh.in
blob: f56e8fade029cb66324d27fbeff8d3a84fca7ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-tools_test_h5dump_testh5dump.sh.in,v 1.1 2022/11/06 17:00:56 adam Exp $

Portability fix.

--- tools/test/h5dump/testh5dump.sh.in.orig	2022-11-05 18:51:12.000000000 +0000
+++ tools/test/h5dump/testh5dump.sh.in
@@ -883,11 +883,11 @@ TOOLTEST_FAIL() {
     ) >&$actual
     RET=$?
     # Segfault occurred
-    if [ $RET == 139 ] ; then
+    if [ $RET = 139 ] ; then
         nerrors="`expr $nerrors + 1`"
         echo "*FAILED - test on $infile failed with segmentation fault"
     # Should fail but didn't
-    elif [ $RET == 0 ] ; then
+    elif [ $RET = 0 ] ; then
         nerrors="`expr $nerrors + 1`"
         echo "*FAILED - test on $infile did not fail as expected"
     else