Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d3c029f

Browse files
committedMar 12, 2025·
use different exit code to differentiate valgrind memory error exit code (3) from program termination caused by exit(1)
1 parent 18f4bcd commit d3c029f

File tree

1 file changed

+139
-134
lines changed

1 file changed

+139
-134
lines changed
 

‎resources/test/scripts/run_valgrind.sh

+139-134
Original file line numberDiff line numberDiff line change
@@ -3,225 +3,230 @@
33
set -x
44
set -u
55

6+
# define VALGRIND exit code when VALGRIND detects memory errors
7+
VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE=3
8+
69
# get initial path before changing it
710
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
811

912
cd ./unittest/IlmCtl/
10-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmCtlTest
13+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmCtlTest
1114
test_01_status=$?
1215
test_01_label="IlmCtlTest"
1316

1417
cd ../IlmCtlMath/
15-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmCtlMathTest
18+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmCtlMathTest
1619
test_02_status=$?
1720
test_02_label="IlmCtlMathTest"
1821

1922
cd ../IlmImfCtl/
20-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmImfCtlTest
23+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmImfCtlTest
2124
test_03_status=$?
2225
test_03_label="IlmImfCtlTest"
2326

2427
cd ../ctlrender
25-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_nuke_10_be.dpx out.dpx
28+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_nuke_10_be.dpx out.dpx
2629
test_04_status=$?
2730
test_04_label="ctlrender-dpx-to-dpx"
2831

29-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_nuke_10_be.dpx out.tif
32+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_nuke_10_be.dpx out.tif
3033
test_05_status=$?
3134
test_05_label="ctlrender-dpx-to-tif"
3235

33-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop_16_le_interleaved.tif out.tif
36+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop_16_le_interleaved.tif out.tif
3437
test_06_status=$?
3538
test_06_label="ctlrender-tif-to-tif"
3639

37-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop_16_le_interleaved.tif out.dpx
40+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop_16_le_interleaved.tif out.dpx
3841
test_07_status=$?
3942
test_07_label="ctlrender-tif-to-dpx"
4043

41-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr
44+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr
4245
test_08_status=$?
4346
test_08_label="ctlrender-exr-to-exr"
4447

45-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr
48+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr
4649
test_09_status=$?
4750
test_09_label="ctlrender-exr-to-exr16"
4851

49-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr
52+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr
5053
test_10_status=$?
5154
test_10_label="ctlrender-exr-to-exr32"
5255

53-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr16.exr out.exr
56+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr16.exr out.exr
5457
test_11_status=$?
5558
test_11_label="ctlrender-rgb-exr16-to-exr16"
5659

57-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr16.exr out.exr
60+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr16.exr out.exr
5861
test_12_status=$?
5962
test_12_label="ctlrender-rgb-exr16-to-exr32"
6063

61-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr32.exr out.exr
64+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr32.exr out.exr
6265
test_13_status=$?
6366
test_13_label="ctlrender-rgb-exr32-to-exr16"
6467

65-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr32.exr out.exr
68+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr32.exr out.exr
6669
test_14_status=$?
6770
test_14_label="ctlrender-rgb-exr32-to-exr32"
6871

69-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr16.exr out.exr
72+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr16.exr out.exr
7073
test_15_status=$?
7174
test_15_label="ctlrender-rgba-exr16-to-exr16"
7275

73-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr16.exr out.exr
76+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr16.exr out.exr
7477
test_16_status=$?
7578
test_16_label="ctlrender-rgba-exr16-to-exr32"
7679

77-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr32.exr out.exr
80+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr32.exr out.exr
7881
test_17_status=$?
7982
test_17_label="ctlrender-rgba-exr32-to-exr16"
8083

81-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr32.exr out.exr
84+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr32.exr out.exr
8285
test_18_status=$?
8386
test_18_label="ctlrender-rgba-exr32-to-exr32"
8487

8588
cd ../exrdpx
8689
cp ../../OpenEXR_CTL/exrdpx/*.ctl .
87-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exrdpx/exrdpx ../../../unittest/exrdpx/marci-512.dpx ./output/marci-512.dpx.exr
90+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exrdpx/exrdpx ../../../unittest/exrdpx/marci-512.dpx ./output/marci-512.dpx.exr
8891
test_19_status=$?
8992
test_19_label="exrdpx-dpx-to-exr"
9093

91-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exrdpx/exrdpx ../../../unittest/exrdpx/marci-512.exr ./output/marci-512.exr.dpx
94+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exrdpx/exrdpx ../../../unittest/exrdpx/marci-512.exr ./output/marci-512.exr.dpx
9295
test_20_status=$?
9396
test_20_label="exrdpx-exr-to-dpx"
9497

9598
cd ../exr_ctl_exr
9699
cp ../../OpenEXR_CTL/exr_ctl_exr/*.ctl .
97-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exr_ctl_exr/exr_ctl_exr -C change_saturation ../../../unittest/exr_ctl_exr/marci-512.exr ./output/exr_ctl_exr-no-args.exr
100+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exr_ctl_exr/exr_ctl_exr -C change_saturation ../../../unittest/exr_ctl_exr/marci-512.exr ./output/exr_ctl_exr-no-args.exr
98101
test_21_status=$?
99102
test_21_label="exr_ctl_exr"
100103

101-
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exr_ctl_exr/exr_ctl_exr -C change_saturation -float sScale 1.2 ../../../unittest/exr_ctl_exr/marci-512.exr ./output/exr_ctl_exr-sScale-1.2.exr
104+
valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exr_ctl_exr/exr_ctl_exr -C change_saturation -float sScale 1.2 ../../../unittest/exr_ctl_exr/marci-512.exr ./output/exr_ctl_exr-sScale-1.2.exr
102105
test_22_status=$?
103106
test_22_label="exr_ctl_exr-float"
104107

105108
# go back to initial path
106109
cd $SCRIPTPATH
107110

108111
# return valgrind exit codes
109-
if [ $test_01_status -eq 0 ] && [ $test_02_status -eq 0 ] && [ $test_03_status -eq 0 ] && [ $test_04_status -eq 0 ] && [ $test_05_status -eq 0 ] && [ $test_06_status -eq 0 ] && [ $test_07_status -eq 0 ] && [ $test_08_status -eq 0 ] && [ $test_09_status -eq 0 ] && [ $test_10_status -eq 0 ] && [ $test_11_status -eq 0 ] && [ $test_12_status -eq 0 ] && [ $test_13_status -eq 0 ] && [ $test_14_status -eq 0 ] && [ $test_15_status -eq 0 ] && [ $test_16_status -eq 0 ] && [ $test_17_status -eq 0 ] && [ $test_18_status -eq 0 ] && [ $test_19_status -eq 0 ] && [ $test_20_status -eq 0 ] && [ $test_21_status -eq 0 ] && [ $test_22_status -eq 0 ]
112+
if [ $test_01_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_02_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_03_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_04_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_05_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_06_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_07_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_08_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_09_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_10_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_11_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_12_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_13_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_14_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_15_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_16_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_17_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_18_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_19_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_20_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_21_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_22_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
110113
then
114+
echo "Failure: valgrind detected errors"
115+
116+
else
111117
echo "Success: valgrind detected no errors"
112118
exit 0
113-
else
114-
echo "Failure: valgrind detected errors"
119+
fi
115120

116-
if [ $test_01_status -ne 0 ]
117-
then
118-
echo "$test_01_label: valgrind detected errors"
119-
fi
120-
121-
if [ $test_02_status -ne 0 ]
122-
then
123-
echo "$test_02_label: valgrind detected errors"
124-
fi
125-
126-
if [ $test_03_status -ne 0 ]
127-
then
128-
echo "$test_03_label: valgrind detected errors"
129-
fi
130-
131-
if [ $test_04_status -ne 0 ]
132-
then
133-
echo "$test_04_label: valgrind detected errors"
134-
fi
135-
136-
if [ $test_05_status -ne 0 ]
137-
then
138-
echo "$test_05_label: valgrind detected errors"
139-
fi
140-
141-
if [ $test_06_status -ne 0 ]
142-
then
143-
echo "$test_06_label: valgrind detected errors"
144-
fi
145-
146-
if [ $test_07_status -ne 0 ]
147-
then
148-
echo "$test_07_label: valgrind detected errors"
149-
fi
150-
151-
if [ $test_08_status -ne 0 ]
152-
then
153-
echo "$test_08_label: valgrind detected errors"
154-
fi
155-
156-
if [ $test_09_status -ne 0 ]
157-
then
158-
echo "$test_09_label: valgrind detected errors"
159-
fi
160-
161-
if [ $test_10_status -ne 0 ]
162-
then
163-
echo "$test_10_label: valgrind detected errors"
164-
fi
165-
166-
if [ $test_11_status -ne 0 ]
167-
then
168-
echo "$test_11_label: valgrind detected errors"
169-
fi
170-
171-
if [ $test_12_status -ne 0 ]
172-
then
173-
echo "$test_12_label: valgrind detected errors"
174-
fi
175-
176-
if [ $test_13_status -ne 0 ]
177-
then
178-
echo "$test_13_label: valgrind detected errors"
179-
fi
180-
181-
if [ $test_14_status -ne 0 ]
182-
then
183-
echo "$test_14_label: valgrind detected errors"
184-
fi
185-
186-
if [ $test_15_status -ne 0 ]
187-
then
188-
echo "$test_15_label: valgrind detected errors"
189-
fi
190-
191-
if [ $test_16_status -ne 0 ]
192-
then
193-
echo "$test_16_label: valgrind detected errors"
194-
fi
195-
196-
if [ $test_17_status -ne 0 ]
197-
then
198-
echo "$test_17_label: valgrind detected errors"
199-
fi
200-
201-
if [ $test_18_status -ne 0 ]
202-
then
203-
echo "$test_18_label: valgrind detected errors"
204-
fi
205-
206-
if [ $test_19_status -ne 0 ]
207-
then
208-
echo "$test_19_label: valgrind detected errors"
209-
fi
210-
211-
if [ $test_20_status -ne 0 ]
212-
then
213-
echo "$test_20_label: valgrind detected errors"
214-
fi
215-
216-
if [ $test_21_status -ne 0 ]
217-
then
218-
echo "$test_21_label: valgrind detected errors"
219-
fi
220-
221-
if [ $test_22_status -ne 0 ]
222-
then
223-
echo "$test_22_label: valgrind detected errors"
224-
fi
121+
if [ $test_01_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
122+
then
123+
echo "$test_01_label: valgrind detected errors"
124+
fi
125+
126+
if [ $test_02_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
127+
then
128+
echo "$test_02_label: valgrind detected errors"
129+
fi
130+
131+
if [ $test_03_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
132+
then
133+
echo "$test_03_label: valgrind detected errors"
134+
fi
135+
136+
if [ $test_04_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
137+
then
138+
echo "$test_04_label: valgrind detected errors"
139+
fi
140+
141+
if [ $test_05_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
142+
then
143+
echo "$test_05_label: valgrind detected errors"
144+
fi
145+
146+
if [ $test_06_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
147+
then
148+
echo "$test_06_label: valgrind detected errors"
149+
fi
150+
151+
if [ $test_07_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
152+
then
153+
echo "$test_07_label: valgrind detected errors"
154+
fi
155+
156+
if [ $test_08_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
157+
then
158+
echo "$test_08_label: valgrind detected errors"
159+
fi
160+
161+
if [ $test_09_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
162+
then
163+
echo "$test_09_label: valgrind detected errors"
164+
fi
165+
166+
if [ $test_10_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
167+
then
168+
echo "$test_10_label: valgrind detected errors"
169+
fi
170+
171+
if [ $test_11_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
172+
then
173+
echo "$test_11_label: valgrind detected errors"
174+
fi
175+
176+
if [ $test_12_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
177+
then
178+
echo "$test_12_label: valgrind detected errors"
179+
fi
180+
181+
if [ $test_13_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
182+
then
183+
echo "$test_13_label: valgrind detected errors"
184+
fi
185+
186+
if [ $test_14_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
187+
then
188+
echo "$test_14_label: valgrind detected errors"
189+
fi
190+
191+
if [ $test_15_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
192+
then
193+
echo "$test_15_label: valgrind detected errors"
194+
fi
195+
196+
if [ $test_16_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
197+
then
198+
echo "$test_16_label: valgrind detected errors"
199+
fi
200+
201+
if [ $test_17_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
202+
then
203+
echo "$test_17_label: valgrind detected errors"
204+
fi
205+
206+
if [ $test_18_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
207+
then
208+
echo "$test_18_label: valgrind detected errors"
209+
fi
210+
211+
if [ $test_19_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
212+
then
213+
echo "$test_19_label: valgrind detected errors"
214+
fi
215+
216+
if [ $test_20_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
217+
then
218+
echo "$test_20_label: valgrind detected errors"
219+
fi
220+
221+
if [ $test_21_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
222+
then
223+
echo "$test_21_label: valgrind detected errors"
224+
fi
225+
226+
if [ $test_22_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ]
227+
then
228+
echo "$test_22_label: valgrind detected errors"
229+
fi
225230

226231
exit 1
227232
fi

0 commit comments

Comments
 (0)
Please sign in to comment.