diff --git a/lld/test/elf2/basic.test b/lld/test/elf2/basic.test
index 713276e459c9..39fb40fe6041 100644
--- a/lld/test/elf2/basic.test
+++ b/lld/test/elf2/basic.test
@@ -62,11 +62,6 @@ _start:
 # RUN:  FileCheck --check-prefix=NO_INPUT %s
 # NO_INPUT: no input files.
 
-# RUN: mkdir -p %t.dir
-# RUN: not lld -flavor gnu2 %t.dir -o %t2 2>&1 | \
-# RUN:  FileCheck --check-prefix=CANNOT_OPEN %s
-# CANNOT_OPEN: cannot open {{.*}}.dir: {{[Ii]}}s a directory
-
 # RUN: not lld -flavor gnu2 %t -o 2>&1 | FileCheck --check-prefix=NO_O_VAL %s
 # NO_O_VAL: missing arg value for "-o", expected 1 argument.