Skip to content

Commit 9b88e08

Browse files
committed
Refactoring.
1 parent 89da7e4 commit 9b88e08

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ test-output:
5050
- cd tests
5151
- export CXX=g++
5252
- export OUTPUT_INSTRUMENT=yes
53-
- export ERROR_OUTPUT_IS_ERROR=no
53+
- export STDERR_OUTPUT_IS_ERROR=no
5454
- make all

tests/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ OUTPUT_INSTRUMENT ?= no
4343
EXPLICIT_PREPROCESSOR ?= no
4444

4545
# possibly set in the environment, toggle whether nonempty output on stderr is treated as an error
46-
ERROR_OUTPUT_IS_ERROR ?= yes
46+
STDERR_OUTPUT_IS_ERROR ?= yes
4747

4848
CXX ?= clang++
4949

@@ -154,7 +154,7 @@ $(patsubst %,run%,$(DRIVERS)):
154154
@rm -f testresults; \
155155
for test in ${DRIVER_TESTS}; \
156156
do \
157-
bash run.sh ${DRIVER} $$test $(MODE) $(EXPLICIT_PREPROCESSOR) $(ERROR_OUTPUT_IS_ERROR); \
157+
bash run.sh ${DRIVER} $$test $(MODE) $(EXPLICIT_PREPROCESSOR) $(STDERR_OUTPUT_IS_ERROR); \
158158
done; \
159159
if grep -q 1 testresults; then \
160160
exit 1; \

tests/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ TEST=$2
2828
GENFILE=$BUILD_DIR"/"$DRIVER$TEST".cpp"
2929
MODE=$3
3030
EXPLICIT_PREPROCESSOR=$4
31-
ERROR_OUTPUT_IS_ERROR=$5
31+
STDERR_OUTPUT_IS_ERROR=$5
3232

3333
LAUNCH_NAME=$DRIVER$TEST
3434
if [[ "$EXPLICIT_PREPROCESSOR" == "yes" ]];
3535
then
3636
LAUNCH_NAME+="Pre";
3737
fi
3838

39-
if [[ "$ERROR_OUTPUT_IS_ERROR" == "yes" ]];
39+
if [[ "$STDERR_OUTPUT_IS_ERROR" == "yes" ]];
4040
then
4141
ERROR_FILE=$RESULT_DIR/$DRIVER$TEST.err;
4242
else

0 commit comments

Comments
 (0)