diff --git a/src/core/test/core-example-command-line.reflog b/src/core/test/core-example-command-line.reflog index ee2e0cc66..cab44691c 100644 --- a/src/core/test/core-example-command-line.reflog +++ b/src/core/test/core-example-command-line.reflog @@ -2,13 +2,14 @@ command-line-example: Argument Initial Value Final Value -intArg: 1 1 -boolArg: false false -strArg: "strArg default" "strArg default" -anti: "false" "false" -cbArg: cbArg default cbArg default -nonOpt1: 1 1 -nonOpt2: 1 1 - -Number of extra non-option arguments: 0 +intArg: 1 2 +boolArg: false true +strArg: "strArg default" "deadbeef" +anti: "false" "true" +cbArg: cbArg default beefstew +nonOpt1: 1 3 +nonOpt2: 1 4 +Number of extra non-option arguments: 2 +extra non-option 0: "extraOne" +extra non-option 1: "extraTwo" \ No newline at end of file diff --git a/src/core/test/examples-as-tests-test-suite.cc b/src/core/test/examples-as-tests-test-suite.cc index 070b3a78f..8f7c1ee6d 100644 --- a/src/core/test/examples-as-tests-test-suite.cc +++ b/src/core/test/examples-as-tests-test-suite.cc @@ -71,7 +71,11 @@ class CommandLineExampleTestCase : public ExampleAsTestCase }; CommandLineExampleTestCase::CommandLineExampleTestCase() - : ExampleAsTestCase("core-example-command-line", "command-line-example", NS_TEST_SOURCEDIR) + : ExampleAsTestCase("core-example-command-line", + "command-line-example", + NS_TEST_SOURCEDIR, + "--intArg=2 --boolArg --strArg=deadbeef --anti=t " + "--cbArg=beefstew 3 4 extraOne extraTwo") { }