aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2025-06-30 18:13:23 +0200
committerJean-Sébastien Pédron <[email protected]>2025-07-22 12:52:47 +0200
commit3336b0638830f59aefc6e7b8f053cc44ae88ee2b (patch)
treebd0696fd9be59e82d7060de28ad6d2532f50ccaa
parentddb7199ee0662eaf96d0366c1deb4e3f764577c2 (diff)
downloaderlang.mk-3336b0638830f59aefc6e7b8f053cc44ae88ee2b.tar.gz
erlang.mk-3336b0638830f59aefc6e7b8f053cc44ae88ee2b.tar.bz2
erlang.mk-3336b0638830f59aefc6e7b8f053cc44ae88ee2b.zip
test/core_app.mk: Redirect stderr to stdout when tests grep for parse_transform output
At least for me with Erlang/OTP 28, parse_transform messages end up on stderr. Let's always redirect stderr to stdout. It will work for anyone with any versions of Erlang.
-rw-r--r--test/core_app.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core_app.mk b/test/core_app.mk
index 138c68d..30c0c4c 100644
--- a/test/core_app.mk
+++ b/test/core_app.mk
@@ -1315,7 +1315,7 @@ core-app-pt: init
"-compile({parse_transform, my_pt})." > $(APP)/src/my_user.erl
$i "Build the application; confirm the parse_transform is used"
- $t $(MAKE) -C $(APP) | grep "Running my_pt parse_transform."
+ $t $(MAKE) -C $(APP) 2>&1 | grep "Running my_pt parse_transform."
$i "Check that the application was compiled correctly"
$t $(ERL) -pa $(APP)/ebin/ -eval " \
@@ -1355,7 +1355,7 @@ core-app-pt-erlc-opts: init
$t echo "ERLC_OPTS += +'{parse_transform, my_pt}'" >> $(APP)/Makefile
$i "Build the application; confirm the parse_transform is used"
- $t $(MAKE) -C $(APP) | grep "Running my_pt parse_transform."
+ $t $(MAKE) -C $(APP) 2>&1 | grep "Running my_pt parse_transform."
$i "Check that the application was compiled correctly"
$t $(ERL) -pa $(APP)/ebin/ -eval " \