From: Mathieu Desnoyers Date: Tue, 10 Apr 2012 15:38:49 +0000 (-0400) Subject: Fix: tests: error handling labels are in the wrong order X-Git-Tag: v2.1.0-rc1~156 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bff9a49f4397f5f38aac4e1c0fa14b391a84bc7b;p=lttng-tools.git Fix: tests: error handling labels are in the wrong order Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/kernel/kernel_all_events_basic.c b/tests/kernel/kernel_all_events_basic.c index 2e56e6a67..b80dbd322 100644 --- a/tests/kernel/kernel_all_events_basic.c +++ b/tests/kernel/kernel_all_events_basic.c @@ -104,10 +104,10 @@ int main(int argc, char **argv) return 0; -create_fail: - assert(ret != 0); handle_fail: assert(handle != NULL); +create_fail: + assert(ret != 0); stop_fail: start_fail: diff --git a/tests/kernel/kernel_event_basic.c b/tests/kernel/kernel_event_basic.c index a7d7dfae8..b0cbf669f 100644 --- a/tests/kernel/kernel_event_basic.c +++ b/tests/kernel/kernel_event_basic.c @@ -176,10 +176,10 @@ int main(int argc, char **argv) return 0; -create_fail: - assert(ret != 0); handle_fail: assert(handle != NULL); +create_fail: + assert(ret != 0); stop_fail: start_fail: diff --git a/tests/ust/ust_global_event_basic.c b/tests/ust/ust_global_event_basic.c index 14d5b8ebd..6f116969f 100644 --- a/tests/ust/ust_global_event_basic.c +++ b/tests/ust/ust_global_event_basic.c @@ -276,10 +276,10 @@ int main(int argc, char **argv) return 0; -create_fail: - assert(ret != 0); handle_fail: assert(handle != NULL); +create_fail: + assert(ret != 0); stop_fail: start_fail: diff --git a/tests/ust/ust_global_event_wildcard.c b/tests/ust/ust_global_event_wildcard.c index 1e4420fa5..198a54168 100644 --- a/tests/ust/ust_global_event_wildcard.c +++ b/tests/ust/ust_global_event_wildcard.c @@ -116,10 +116,10 @@ int main(int argc, char **argv) return 0; -create_fail: - assert(ret != 0); handle_fail: assert(handle != NULL); +create_fail: + assert(ret != 0); stop_fail: start_fail: