+#check failure in validate_optstr.
+$testconf = Installcheck::Run::setup();
+$testconf->add_dle(<<EODLE);
+localhost diskname2 $diskname {
+ installcheck-test
+ program "APPLICATION"
+ application {
+ plugin "amgtar"
+ property "ATIME-PRESERVE" "NO"
+ }
+ compress client custom
+}
+EODLE
+$testconf->write();
+
+ok(!run("$amlibexecdir/planner", 'TESTCONF'), "amdump fails in validate_optstr");
+open(my $logfile, "<", "$CONFIG_DIR/TESTCONF/log/log")
+ or die("opening log: $!");
+my $logline = grep(/^\S+ planner localhost diskname2 \d* 0 \[client custom compression with no compression program specified\]/, <$logfile>);
+ok($logline, "planner fail without 'client custom compression with no compression program specified'");
+