diff --git a/testsuite/expect/test7.9 b/testsuite/expect/test7.9
index 453a8f167e2d43df88f872ef4cc019d5fc7c0e76..b0f8cf4ca8212d35320b41186bc923859e8926ec 100755
--- a/testsuite/expect/test7.9
+++ b/testsuite/expect/test7.9
@@ -42,18 +42,28 @@ set iterations       50
 print_header $test_id
 
 #
-# Test is incompatible with switch/elan
+# Test is incompatible with proctrack/rms, proctrack/sgi_job, and switch/elan
+# Each leave open files, although we could clear the proctrack related files
+# by just closing all files after fd=3. Closing all files from switch/elan
+# would disable its use.
 #
-set switch_elan 0
+set invalid 0
 log_user 0
 spawn $scontrol show config
 expect {
 	-re "proctrack/rms" {
-		set switch_elan 1
+		send_user "\nWARNING: test incompatible with proctrack/rms\n"
+		set invalid 1
+		exp_continue
+	}
+	-re "proctrack/sgi_job" {
+		send_user "\nWARNING: test incompatible with proctrack/sgi_job\n"
+		set invalid 1
 		exp_continue
 	}
 	-re "switch/elan" {
-		set switch_elan 1
+		send_user "\nWARNING: test incompatible with switch/elan\n"
+		set invalid 1
 		exp_continue
 	}
 	timeout {
@@ -65,8 +75,7 @@ expect {
 	}
 }
 log_user 1
-if {$switch_elan == 1} {
-	send_user "\nWARNING: not running compatible switch, this test is not applicable\n"
+if {$invalid == 1} {
 	exit $exit_code
 }