]> pilppa.org Git - uci.git/blobdiff - test/tests.d/030_set
test: do not print expected error messages
[uci.git] / test / tests.d / 030_set
index 8f695ed944f16880188c5914e882731238e0ea54..9d2ff4b990e1e5e9c37123a22cd6eb1522418549 100644 (file)
@@ -1,3 +1,13 @@
+test_set_parsing()
+{
+       cp ${REF_DIR}/set_parsing.data ${CONFIG_DIR}/test
+
+       assertFailWithNoReturn "${UCI_Q} set test.=val"
+       assertFailWithNoReturn "${UCI_Q} set test.section.=val"
+       assertFailWithNoReturn "${UCI_Q} set test.section.opt.=val"
+       assertFailWithNoReturn "${UCI_Q} set test.section.opt.zflk=val"
+}
+
 test_set_named_section()
 {
        touch ${CONFIG_DIR}/set