From bb4f2490384dfe242c89c9b4fcefaf4beb22c58b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 31 Aug 2015 17:27:39 -0400 Subject: [PATCH] Fix: test elf: handle NULL debug file Signed-off-by: Mathieu Desnoyers --- tests/ust-elf/prog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ust-elf/prog.c b/tests/ust-elf/prog.c index 5090bcf7..85b9c347 100644 --- a/tests/ust-elf/prog.c +++ b/tests/ust-elf/prog.c @@ -103,7 +103,7 @@ void test_elf(const char *test_dir, const char *arch, uint64_t exp_memsz, &has_debug_link); ok(ret == 0, "lttng_ust_elf_get_debug_link returned successfully"); ok(has_debug_link == 1, "debug link marked as found"); - ok(strcmp(dbg_file, DBG_FILE) == 0, + ok(dbg_file && strcmp(dbg_file, DBG_FILE) == 0, "debug link filename - expected: %s, got: %s", DBG_FILE, dbg_file); ok(crc == exp_crc, -- 2.34.1