From e5903308b2e99f5759cc7853837c967159be136e Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Tue, 28 Nov 2023 15:31:25 -0600 Subject: [PATCH] Fixes --- .github/workflows/mqtt-sn-check.yml | 4 +--- examples/sn-client/sn-client.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mqtt-sn-check.yml b/.github/workflows/mqtt-sn-check.yml index f60656ba1..4d00dd2b0 100644 --- a/.github/workflows/mqtt-sn-check.yml +++ b/.github/workflows/mqtt-sn-check.yml @@ -84,9 +84,7 @@ jobs: run: make - name: test SN Client - run: ./examples/sn-client/sn-client -T $1 - RESULT=$? - [ $RESULT -ne 0 ] && echo -e "\n\nMQTT-SN Client failed!" && exit 1 + run: ./examples/sn-client/sn-client -T # Cleanup - name: Stop gateway diff --git a/examples/sn-client/sn-client.c b/examples/sn-client/sn-client.c index 06170180b..31a909603 100644 --- a/examples/sn-client/sn-client.c +++ b/examples/sn-client/sn-client.c @@ -744,6 +744,6 @@ int main(int argc, char** argv) #endif - return (rc == 0) ? 0 : EXIT_FAILURE; + return (rc == MQTT_CODE_SUCCESS) ? 0 : EXIT_FAILURE; }