-// RUN: llvm-mc -filetype=obj -compress-debug-sections -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
+// RUN: not llvm-mc -filetype=obj -compress-debug-sections -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
// REQUIRES: nozlib
-// CHECK: llvm-mc: build tools with zlib to enable -compress-debug-sections
+// CHECK: llvm-mc{{[^:]*}}: build tools with zlib to enable -compress-debug-sections